fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
904 B19 linesraw
1error[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   |
4LL | 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
9error[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   |
12LL | 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
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0210`.