2017-10-22 10:14:53 -05:00
|
|
|
error[E0119]: conflicting implementations of trait `std::ops::Deref` for type `&_`:
|
|
|
|
--> $DIR/issue-28981.rs:15:1
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | impl<Foo> Deref for Foo { } //~ ERROR must be used
|
2017-12-18 01:46:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2017-10-22 10:14:53 -05:00
|
|
|
|
|
|
|
|
= note: conflicting implementation in crate `core`:
|
2018-11-06 16:49:09 -06:00
|
|
|
- impl<T> std::ops::Deref for &T
|
2017-10-22 10:14:53 -05:00
|
|
|
where T: ?Sized;
|
|
|
|
|
2018-03-14 21:10:28 -05:00
|
|
|
error[E0210]: type parameter `Foo` must be used as the type parameter for some local type (e.g. `MyStruct<Foo>`)
|
2017-10-22 10:14:53 -05:00
|
|
|
--> $DIR/issue-28981.rs:15:1
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | impl<Foo> Deref for Foo { } //~ ERROR must be used
|
2018-03-14 21:10:28 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ type parameter `Foo` must be used as the type parameter for some local type
|
|
|
|
|
|
|
|
|
= note: only traits defined in the current crate can be implemented for a type parameter
|
2017-10-22 10:14:53 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
Some errors occurred: E0119, E0210.
|
|
|
|
For more information about an error, try `rustc --explain E0119`.
|