summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/no-const-async.rs
blob: b3c59734e036f7b0a57b729d99c3cd6f3026cc75 (plain)
1
2
3
4
5
// edition:2018
// compile-flags: --crate-type lib

pub const async fn x() {}
//~^ ERROR functions cannot be both `const` and `async`