You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/test/ui/e0119/complex-impl.stderr
+4-2
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,13 @@ LL | impl<R> External for (Q, R) {} //~ ERROR must be used
8
8
- impl<'a, 'b, 'c, T, U, V, W> complex_impl_support::External for (T, complex_impl_support::M<'a, 'b, 'c, std::boxed::Box<U>, V, W>)
9
9
where <U as std::ops::FnOnce<(T,)>>::Output == V, <V as std::iter::Iterator>::Item == T, 'b : 'a, T : 'a, U: std::ops::FnOnce<(T,)>, U : 'static, V: std::iter::Iterator, V: std::clone::Clone, W: std::ops::Add, <W as std::ops::Add>::Output: std::marker::Copy;
10
10
11
-
error[E0210]: type parameter `R` must be used as the type parameter for some local type (e.g. `MyStruct<T>`); only traits defined in the current crate can be implemented for a type parameter
11
+
error[E0210]: type parameter `R` must be used as the type parameter for some local type (e.g. `MyStruct<R>`)
12
12
--> $DIR/complex-impl.rs:19:1
13
13
|
14
14
LL | impl<R> External for (Q, R) {} //~ ERROR must be used
15
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter `R` must be used as the type parameter for some local type
16
+
|
17
+
= note: only traits defined in the current crate can be implemented for a type parameter
Copy file name to clipboardexpand all lines: src/test/ui/e0119/issue-28981.stderr
+4-2
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,13 @@ LL | impl<Foo> Deref for Foo { } //~ ERROR must be used
8
8
- impl<'a, T> std::ops::Deref for &'a T
9
9
where T: ?Sized;
10
10
11
-
error[E0210]: type parameter `Foo` must be used as the type parameter for some local type (e.g. `MyStruct<T>`); only traits defined in the current crate can be implemented for a type parameter
11
+
error[E0210]: type parameter `Foo` must be used as the type parameter for some local type (e.g. `MyStruct<Foo>`)
12
12
--> $DIR/issue-28981.rs:15:1
13
13
|
14
14
LL | impl<Foo> Deref for Foo { } //~ ERROR must be used
15
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
+
| ^^^^^^^^^^^^^^^^^^^^^^^ type parameter `Foo` must be used as the type parameter for some local type
16
+
|
17
+
= note: only traits defined in the current crate can be implemented for a type parameter
0 commit comments