fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0751]: found both positive and negative implementation of trait `Foo` for type `u8`: 2 --> $DIR/specialization-polarity.rs:10:1 3 | 4LL | impl<T> Foo for T {} 5 | ----------------- positive implementation here 6LL | impl !Foo for u8 {} 7 | ^^^^^^^^^^^^^^^^ negative implementation here 8 9error[E0751]: found both positive and negative implementation of trait `Bar` for type `u8`: 10 --> $DIR/specialization-polarity.rs:15:1 11 | 12LL | impl<T> !Bar for T {} 13 | ------------------ negative implementation here 14LL | impl Bar for u8 {} 15 | ^^^^^^^^^^^^^^^ positive implementation here 16 17error: aborting due to 2 previous errors 18 19For more information about this error, try `rustc --explain E0751`.