|
1 | | -error[E0119]: conflicting implementations of trait `Contravariant` for type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`: |
| 1 | +error[E0119]: conflicting implementations of trait `TheTrait` for type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`: |
2 | 2 | --> $DIR/coherence-subtyping.rs:11:1 |
3 | 3 | | |
4 | | -LL | impl Contravariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 { |
5 | | - | -------------------------------------------------------------- first implementation here |
| 4 | +LL | impl TheTrait for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 { |
| 5 | + | --------------------------------------------------------- first implementation here |
6 | 6 | ... |
7 | | -LL | impl Contravariant for for<'a> fn(&'a u8, &'a u8) -> &'a u8 { |
8 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8` |
| 7 | +LL | impl TheTrait for for<'a> fn(&'a u8, &'a u8) -> &'a u8 { |
| 8 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8` |
9 | 9 |
|
10 | | -error[E0119]: conflicting implementations of trait `Covariant` for type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`: |
11 | | - --> $DIR/coherence-subtyping.rs:24:1 |
12 | | - | |
13 | | -LL | impl Covariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 { |
14 | | - | ---------------------------------------------------------- first implementation here |
15 | | -... |
16 | | -LL | impl Covariant for for<'a> fn(&'a u8, &'a u8) -> &'a u8 { |
17 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8` |
18 | | - |
19 | | -error[E0119]: conflicting implementations of trait `Invariant` for type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`: |
20 | | - --> $DIR/coherence-subtyping.rs:37:1 |
21 | | - | |
22 | | -LL | impl Invariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 { |
23 | | - | ---------------------------------------------------------- first implementation here |
24 | | -... |
25 | | -LL | impl Invariant for for<'a> fn(&'a u8, &'a u8) -> &'a u8 { |
26 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8` |
27 | | - |
28 | | -error: aborting due to 3 previous errors |
| 10 | +error: aborting due to previous error |
29 | 11 |
|
30 | 12 | For more information about this error, try `rustc --explain E0119`. |
0 commit comments