-
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.
Walk into the right visitor when looking at projections of opaque types
- Loading branch information
Showing
3 changed files
with
40 additions
and
9 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
15 changes: 15 additions & 0 deletions
15
tests/ui/type-alias-impl-trait/hidden_behind_struct_field3.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
error: item constrains opaque type that is not in its signature | ||
--> $DIR/hidden_behind_struct_field3.rs:19:27 | ||
| | ||
LL | vec![Foo { field: () }].into_iter() | ||
| ^^ | ||
| | ||
= note: this item must mention the opaque type in its signature in order to be able to register hidden types | ||
note: this item must mention the opaque type in its signature in order to be able to register hidden types | ||
--> $DIR/hidden_behind_struct_field3.rs:18:8 | ||
| | ||
LL | fn foo() -> Self::Assoc { | ||
| ^^^ | ||
|
||
error: aborting due to 1 previous error | ||
|