fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
667 B19 linesraw
1error[E0119]: conflicting implementations of trait `Foo` for type `u8`:
2  --> $DIR/specialization-polarity.rs:9:1
3   |
4LL | impl<T> Foo for T {}
5   | ----------------- first implementation here
6LL | impl !Foo for u8 {}
7   | ^^^^^^^^^^^^^^^^ conflicting implementation for `u8`
8
9error[E0119]: conflicting implementations of trait `Bar` for type `u8`:
10  --> $DIR/specialization-polarity.rs:14:1
11   |
12LL | impl<T> !Bar for T {}
13   | ------------------ first implementation here
14LL | impl Bar for u8 {}
15   | ^^^^^^^^^^^^^^^ conflicting implementation for `u8`
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0119`.