Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf2f7cc
commit 1db7193
Showing
4 changed files
with
14 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,12 @@ | ||
error[E0119]: conflicting implementations of trait `Contravariant` for type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`: | ||
error[E0119]: conflicting implementations of trait `TheTrait` for type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`: | ||
--> $DIR/coherence-subtyping.rs:11:1 | ||
| | ||
LL | impl Contravariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 { | ||
| -------------------------------------------------------------- first implementation here | ||
LL | impl TheTrait for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 { | ||
| --------------------------------------------------------- first implementation here | ||
... | ||
LL | impl Contravariant for for<'a> fn(&'a u8, &'a u8) -> &'a u8 { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8` | ||
LL | impl TheTrait for for<'a> fn(&'a u8, &'a u8) -> &'a u8 { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8` | ||
|
||
error[E0119]: conflicting implementations of trait `Covariant` for type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`: | ||
--> $DIR/coherence-subtyping.rs:24:1 | ||
| | ||
LL | impl Covariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 { | ||
| ---------------------------------------------------------- first implementation here | ||
... | ||
LL | impl Covariant for for<'a> fn(&'a u8, &'a u8) -> &'a u8 { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8` | ||
|
||
error[E0119]: conflicting implementations of trait `Invariant` for type `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`: | ||
--> $DIR/coherence-subtyping.rs:37:1 | ||
| | ||
LL | impl Invariant for for<'a,'b> fn(&'a u8, &'b u8) -> &'a u8 { | ||
| ---------------------------------------------------------- first implementation here | ||
... | ||
LL | impl Invariant for for<'a> fn(&'a u8, &'a u8) -> &'a u8 { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8` | ||
|
||
error: aborting due to 3 previous errors | ||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0119`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters