summaryrefslogtreecommitdiffstats
path: root/src/test/ui/async-await/issues/issue-95307.rs
blob: f7e48070ccde6f948e8a52c6a5f3823b8f29faaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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() {}