rust/tests/ui/async-await/no-const-async.rs

6 lines
136 B
Rust

//@ edition:2018
//@ compile-flags: --crate-type lib
pub const async fn x() {}
//~^ ERROR functions cannot be both `const` and `async`