]> git.proxmox.com Git - rustc.git/blob - src/test/ui/coherence/impl[t]-foreign[fundamental[t]]-for-t.stderr
04ac6a868fa1ab3009711c0ad49228333534a886
[rustc.git] / src / test / ui / coherence / impl[t]-foreign[fundamental[t]]-for-t.stderr
1 error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
2 --> $DIR/impl[t]-foreign[fundamental[t]]-for-t.rs:12:6
3 |
4 LL | impl<T> Remote1<Box<T>> for T {
5 | ^ type parameter `T` must be used as the type parameter for some local type
6 |
7 = note: only traits defined in the current crate can be implemented for a type parameter
8
9 error[E0210]: type parameter `T` must be used as the type parameter for some local type (e.g., `MyStruct<T>`)
10 --> $DIR/impl[t]-foreign[fundamental[t]]-for-t.rs:15:10
11 |
12 LL | impl<'a, T> Remote1<&'a T> for T {
13 | ^ type parameter `T` must be used as the type parameter for some local type
14 |
15 = note: only traits defined in the current crate can be implemented for a type parameter
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0210`.