|
| 1 | +error[E0119]: conflicting implementations of trait `Contravariant` for type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`: |
| 2 | + --> $DIR/coherence-subtyping.rs:21:1 |
| 3 | + | |
| 4 | +LL | impl Contravariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 { |
| 5 | + | -------------------------------------------------------------- first implementation here |
| 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` |
| 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:34: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:47: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 |
| 29 | + |
| 30 | +For more information about this error, try `rustc --explain E0119`. |
0 commit comments