]> git.lizzy.rs Git - rust.git/blob - src/test/ui/specialization/specialization-overlap.stderr
Rollup merge of #105674 - estebank:iterator-chains, r=oli-obk
[rust.git] / src / test / ui / specialization / specialization-overlap.stderr
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
3    |
4 LL | #![feature(specialization)]
5    |            ^^^^^^^^^^^^^^
6    |
7    = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
8    = help: consider using `min_specialization` instead, which is more stable and complete
9    = note: `#[warn(incomplete_features)]` on by default
10
11 error[E0119]: conflicting implementations of trait `Foo` for type `Vec<_>`
12   --> $DIR/specialization-overlap.rs:5:1
13    |
14 LL | impl<T: Clone> Foo for T {}
15    | ------------------------ first implementation here
16 LL | impl<T> Foo for Vec<T> {}
17    | ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Vec<_>`
18
19 error[E0119]: conflicting implementations of trait `Bar` for type `(u8, u8)`
20   --> $DIR/specialization-overlap.rs:9:1
21    |
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)`
26
27 error[E0119]: conflicting implementations of trait `Baz<u8>` for type `u8`
28   --> $DIR/specialization-overlap.rs:13:1
29    |
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`
34
35 error[E0119]: conflicting implementations of trait `Qux`
36   --> $DIR/specialization-overlap.rs:17:1
37    |
38 LL | impl<T: Clone> Qux for T {}
39    | ------------------------ first implementation here
40 LL | impl<T: Eq> Qux for T {}
41    | ^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
42
43 error: aborting due to 4 previous errors; 1 warning emitted
44
45 For more information about this error, try `rustc --explain E0119`.