-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Showing
3 changed files
with
3 additions
and
18 deletions.
There are no files selected for viewing
17 changes: 2 additions & 15 deletions
17
tests/ui/type-alias-impl-trait/issue-84660-unsoundness.current.stderr
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,25 +1,12 @@ | ||
error: item does not constrain `Bar::{opaque#0}`, but has it in its signature | ||
--> $DIR/issue-84660-unsoundness.rs:22:8 | ||
| | ||
LL | fn convert(_i: In) -> Self::Out { | ||
| ^^^^^^^ | ||
| | ||
= note: consider moving the opaque type's declaration and defining uses into a separate module | ||
note: this opaque type is in the signature | ||
--> $DIR/issue-84660-unsoundness.rs:12:12 | ||
| | ||
LL | type Bar = impl Foo; | ||
| ^^^^^^^^ | ||
|
||
error[E0119]: conflicting implementations of trait `Trait<Bar, _>` | ||
--> $DIR/issue-84660-unsoundness.rs:29:1 | ||
--> $DIR/issue-84660-unsoundness.rs:28:1 | ||
| | ||
LL | impl<In, Out> Trait<Bar, In> for Out { | ||
| ------------------------------------ first implementation here | ||
... | ||
LL | impl<In, Out> Trait<(), In> for Out { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to 1 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