mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
14 lines
409 B
Rust
14 lines
409 B
Rust
// 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() {}
|