summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/issues/issue-95307.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/async-await/issues/issue-95307.rs')
-rw-r--r--src/test/ui/async-await/issues/issue-95307.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/ui/async-await/issues/issue-95307.rs b/src/test/ui/async-await/issues/issue-95307.rs
deleted file mode 100644
index f7e48070c..000000000
--- a/src/test/ui/async-await/issues/issue-95307.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-// edition:2018
-
-// Regression test for #95307.
-// The ICE occurred on all the editions, specifying edition:2018 to reduce diagnostics.
-
-pub trait C {
- async fn new() -> [u8; _];
- //~^ ERROR: functions in traits cannot be declared `async`
- //~| ERROR: using `_` for array lengths is unstable
- //~| ERROR: in expressions, `_` can only be used on the left-hand side of an assignment
-}
-
-fn main() {}