Skip to content

Commit a8c9a0b

Browse files
crash -> test
1 parent 0650115 commit a8c9a0b

File tree

3 files changed

+27
-10
lines changed

3 files changed

+27
-10
lines changed

tests/crashes/122552.rs

-10
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//@ edition:2021
2+
3+
trait X {
4+
fn test() -> Self::Assoc<{ async {} }>;
5+
//~^ ERROR associated type `Assoc` not found for `Self`
6+
//~| ERROR associated type `Assoc` not found for `Self`
7+
8+
}
9+
10+
pub fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
error[E0220]: associated type `Assoc` not found for `Self`
2+
--> $DIR/coroutine-in-orphaned-anon-const.rs:4:24
3+
|
4+
LL | fn test() -> Self::Assoc<{ async {} }>;
5+
| ^^^^^ associated type `Assoc` not found
6+
7+
error[E0220]: associated type `Assoc` not found for `Self`
8+
--> $DIR/coroutine-in-orphaned-anon-const.rs:4:24
9+
|
10+
LL | fn test() -> Self::Assoc<{ async {} }>;
11+
| ^^^^^ associated type `Assoc` not found
12+
|
13+
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
14+
15+
error: aborting due to 2 previous errors
16+
17+
For more information about this error, try `rustc --explain E0220`.

0 commit comments

Comments
 (0)