1
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
2
+ --> $DIR/coherence-subtyping.rs:11 :1
3
3
|
4
4
LL | impl Contravariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 {
5
5
| -------------------------------------------------------------- first implementation here
@@ -8,7 +8,7 @@ LL | impl Contravariant for for<'a> fn(&'a u8, &'a u8) -> &'a u8 {
8
8
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`
9
9
10
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
11
+ --> $DIR/coherence-subtyping.rs:24 :1
12
12
|
13
13
LL | impl Covariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 {
14
14
| ---------------------------------------------------------- first implementation here
@@ -17,7 +17,7 @@ LL | impl Covariant for for<'a> fn(&'a u8, &'a u8) -> &'a u8 {
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`
18
18
19
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
20
+ --> $DIR/coherence-subtyping.rs:37 :1
21
21
|
22
22
LL | impl Invariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 {
23
23
| ---------------------------------------------------------- first implementation here
0 commit comments