]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never-from-impl-is-reserved.stderr
move interface to the unikernel in the crate hermit-abi
[rust.git] / src / test / ui / never-from-impl-is-reserved.stderr
1 error[E0119]: conflicting implementations of trait `MyTrait` for type `MyFoo`:
2   --> $DIR/never-from-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    = note: permitting this impl would forbid us from adding `impl<T> From<!> for T` later; see rust-lang/rust#64715 for details
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0119`.