]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence-overlap-messages.re.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-overlap-messages.re.stderr
CommitLineData
b7449926 1error[E0119]: conflicting implementations of trait `Foo`:
0731742a 2 --> $DIR/coherence-overlap-messages.rs:8:1
b7449926
XL
3 |
4LL | impl<T> Foo for T {}
5 | ----------------- first implementation here
0731742a 6LL | impl<U> Foo for U {}
b7449926
XL
7 | ^^^^^^^^^^^^^^^^^ conflicting implementation
8
9error[E0119]: conflicting implementations of trait `Bar` for type `(u8, u8)`:
0731742a 10 --> $DIR/coherence-overlap-messages.rs:16:1
b7449926
XL
11 |
12LL | impl<T> Bar for (T, u8) {}
13 | ----------------------- first implementation here
0731742a 14LL | impl<T> Bar for (u8, T) {}
b7449926
XL
15 | ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(u8, u8)`
16
17error[E0119]: conflicting implementations of trait `Baz<u8>` for type `u8`:
0731742a 18 --> $DIR/coherence-overlap-messages.rs:23:1
b7449926
XL
19 |
20LL | impl<T> Baz<u8> for T {}
21 | --------------------- first implementation here
0731742a 22LL | impl<T> Baz<T> for u8 {}
b7449926
XL
23 | ^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `u8`
24
25error[E0119]: conflicting implementations of trait `Quux<_, _>`:
0731742a 26 --> $DIR/coherence-overlap-messages.rs:30:1
b7449926
XL
27 |
28LL | impl<T, U, V> Quux<U, V> for T {}
29 | ------------------------------ first implementation here
0731742a 30LL | impl<T, U> Quux<U, U> for T {}
b7449926
XL
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
32
33error[E0119]: conflicting implementations of trait `Quux<_, _>`:
0731742a 34 --> $DIR/coherence-overlap-messages.rs:33:1
b7449926
XL
35 |
36LL | impl<T, U, V> Quux<U, V> for T {}
37 | ------------------------------ first implementation here
0731742a
XL
38...
39LL | impl<T, V> Quux<T, V> for T {}
b7449926
XL
40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
41
42error: aborting due to 5 previous errors
43
44For more information about this error, try `rustc --explain E0119`.