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

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