Skip to content

Commit

Permalink
crash -> test
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Apr 16, 2024
1 parent 0650115 commit a8c9a0b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/crashes/122552.rs

This file was deleted.

10 changes: 10 additions & 0 deletions tests/ui/coroutine/coroutine-in-orphaned-anon-const.rs
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 tests/ui/coroutine/coroutine-in-orphaned-anon-const.stderr
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`.

0 comments on commit a8c9a0b

Please sign in to comment.