fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
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`.