1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/specialization-overlap.rs:1:12
4 LL | #![feature(specialization)]
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9 = help: consider using `min_specialization` instead, which is more stable and complete
11 error[E0119]: conflicting implementations of trait `Foo` for type `std::vec::Vec<_>`:
12 --> $DIR/specialization-overlap.rs:5:1
14 LL | impl<T: Clone> Foo for T {}
15 | ------------------------ first implementation here
16 LL | impl<T> Foo for Vec<T> {}
17 | ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `std::vec::Vec<_>`
19 error[E0119]: conflicting implementations of trait `Bar` for type `(u8, u8)`:
20 --> $DIR/specialization-overlap.rs:9:1
22 LL | impl<T> Bar for (T, u8) {}
23 | ----------------------- first implementation here
24 LL | impl<T> Bar for (u8, T) {}
25 | ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(u8, u8)`
27 error[E0119]: conflicting implementations of trait `Baz<u8>` for type `u8`:
28 --> $DIR/specialization-overlap.rs:13:1
30 LL | impl<T> Baz<T> for u8 {}
31 | --------------------- first implementation here
32 LL | impl<T> Baz<u8> for T {}
33 | ^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `u8`
35 error[E0119]: conflicting implementations of trait `Qux`:
36 --> $DIR/specialization-overlap.rs:17:1
38 LL | impl<T: Clone> Qux for T {}
39 | ------------------------ first implementation here
40 LL | impl<T: Eq> Qux for T {}
41 | ^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
43 error: aborting due to 4 previous errors; 1 warning emitted
45 For more information about this error, try `rustc --explain E0119`.