rust/tests/ui/async-await/issues/issue-95307.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
346 B
Rust
Raw Normal View History

2022-06-07 08:54:15 -05:00
// 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; _];
2023-09-13 11:04:42 -05:00
//~^ ERROR: using `_` for array lengths is unstable
2022-06-07 08:54:15 -05:00
//~| ERROR: in expressions, `_` can only be used on the left-hand side of an assignment
}
fn main() {}