fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0119]: conflicting implementations of trait `Foo` for type `std::vec::Vec<_>`: 2 --> $DIR/specialization-overlap.rs:5:1 3 | 4LL | impl<T: Clone> Foo for T {} 5 | ------------------------ first implementation here 6LL | impl<T> Foo for Vec<T> {} 7 | ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `std::vec::Vec<_>` 8 9error[E0119]: conflicting implementations of trait `Bar` for type `(u8, u8)`: 10 --> $DIR/specialization-overlap.rs:9:1 11 | 12LL | impl<T> Bar for (T, u8) {} 13 | ----------------------- first implementation here 14LL | impl<T> Bar for (u8, T) {} 15 | ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(u8, u8)` 16 17error[E0119]: conflicting implementations of trait `Baz<u8>` for type `u8`: 18 --> $DIR/specialization-overlap.rs:13:1 19 | 20LL | impl<T> Baz<T> for u8 {} 21 | --------------------- first implementation here 22LL | impl<T> Baz<u8> for T {} 23 | ^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `u8` 24 25error[E0119]: conflicting implementations of trait `Qux`: 26 --> $DIR/specialization-overlap.rs:17:1 27 | 28LL | impl<T: Clone> Qux for T {} 29 | ------------------------ first implementation here 30LL | impl<T: Eq> Qux for T {} 31 | ^^^^^^^^^^^^^^^^^^^^^ conflicting implementation 32 33error: aborting due to 4 previous errors 34 35For more information about this error, try `rustc --explain E0119`.