-
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
1 parent
0650115
commit a8c9a0b
Showing
3 changed files
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
//@ edition:2021 | ||
|
||
trait X { | ||
fn test() -> Self::Assoc<{ async {} }>; | ||
//~^ ERROR associated type `Assoc` not found for `Self` | ||
//~| ERROR associated type `Assoc` not found for `Self` | ||
|
||
} | ||
|
||
pub fn main() {} |
17 changes: 17 additions & 0 deletions
17
tests/ui/coroutine/coroutine-in-orphaned-anon-const.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,17 @@ | ||
error[E0220]: associated type `Assoc` not found for `Self` | ||
--> $DIR/coroutine-in-orphaned-anon-const.rs:4:24 | ||
| | ||
LL | fn test() -> Self::Assoc<{ async {} }>; | ||
| ^^^^^ associated type `Assoc` not found | ||
|
||
error[E0220]: associated type `Assoc` not found for `Self` | ||
--> $DIR/coroutine-in-orphaned-anon-const.rs:4:24 | ||
| | ||
LL | fn test() -> Self::Assoc<{ async {} }>; | ||
| ^^^^^ associated type `Assoc` not found | ||
| | ||
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0220`. |