rust/tests/ui/error-codes/e0119/issue-28981.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
600 B
Plaintext
Raw Normal View History

error[E0210]: type parameter `Foo` must be used as the type parameter for some local type (e.g., `MyStruct<Foo>`)
--> $DIR/issue-28981.rs:5:6
|
2019-03-09 06:03:44 -06:00
LL | impl<Foo> Deref for Foo { }
| ^^^ type parameter `Foo` must be used as the type parameter for some local type
2018-03-14 21:10:28 -05:00
|
= note: implementing a foreign trait is only possible if at least one of the types for which it is implemented is local
2018-03-14 21:10:28 -05:00
= note: only traits defined in the current crate can be implemented for a type parameter
error: aborting due to previous error
For more information about this error, try `rustc --explain E0210`.