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