]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/negative-impls/positive-specializes-negative.stderr
a24d7aa442f4ab97326a87a2ae287e26adffd323
[rust.git] / src / test / ui / traits / negative-impls / positive-specializes-negative.stderr
1 error[E0751]: found both positive and negative implementation of trait `MyTrait` for type `u32`:
2   --> $DIR/positive-specializes-negative.rs:7:1
3    |
4 LL | impl<T> !MyTrait for T {}
5    | ---------------------- negative implementation here
6 LL | impl MyTrait for u32 {}
7    | ^^^^^^^^^^^^^^^^^^^^ positive implementation here
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0751`.