]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never-impl-is-reserved.stderr
09116eb4f7fafa9e7605188417b22978fa0e4d35
[rust.git] / src / test / ui / never-impl-is-reserved.stderr
1 error[E0119]: conflicting implementations of trait `MyTrait` for type `MyFoo`:
2   --> $DIR/never-impl-is-reserved.rs:10:1
3    |
4 LL | impl MyTrait for MyFoo {}
5    | ---------------------- first implementation here
6 LL | // This will conflict with the first impl if we impl `for<T> T: From<!>`.
7 LL | impl<T> MyTrait for T where T: From<!> {}
8    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `MyFoo`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0119`.