rust/src/test/ui/never-from-impl-is-reserved.stderr

15 lines
666 B
Plaintext
Raw Normal View History

error[E0119]: conflicting implementations of trait `MyTrait` for type `MyFoo`:
2019-07-13 14:52:57 -05:00
--> $DIR/never-from-impl-is-reserved.rs:10:1
|
LL | impl MyTrait for MyFoo {}
| ---------------------- first implementation here
LL | // This will conflict with the first impl if we impl `for<T> T: From<!>`.
LL | impl<T> MyTrait for T where T: From<!> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `MyFoo`
2019-07-27 14:18:34 -05:00
|
= note: permitting this impl would forbid us from adding `impl<T> From<!> for T` later; see rust-lang/rust#64715 for details
error: aborting due to previous error
For more information about this error, try `rustc --explain E0119`.