2018-11-27 02:59:49 +00:00
|
|
|
error[E0210]: type parameter `Foo` must be used as the type parameter for some local type (e.g., `MyStruct<Foo>`)
|
2019-10-12 14:31:23 -07:00
|
|
|
--> $DIR/issue-28981.rs:5:6
|
2017-10-22 23:14:53 +08:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | impl<Foo> Deref for Foo { }
|
2019-10-12 14:31:23 -07:00
|
|
|
| ^^^ type parameter `Foo` must be used as the type parameter for some local type
|
2018-03-14 19:10:28 -07:00
|
|
|
|
|
2020-10-17 10:56:54 +01: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 19:10:28 -07:00
|
|
|
= note: only traits defined in the current crate can be implemented for a type parameter
|
2017-10-22 23:14:53 +08:00
|
|
|
|
2021-10-21 15:36:35 +02:00
|
|
|
error: aborting due to previous error
|
2017-10-22 23:14:53 +08:00
|
|
|
|
2021-10-21 15:36:35 +02:00
|
|
|
For more information about this error, try `rustc --explain E0210`.
|