]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/no-const-async.rs
Rollup merge of #107027 - GuillaumeGomez:rm-extra-removal, r=tmiasko
[rust.git] / tests / ui / async-await / no-const-async.rs
1 // edition:2018
2 // compile-flags: --crate-type lib
3
4 pub const async fn x() {}
5 //~^ ERROR functions cannot be both `const` and `async`
6 //~| ERROR cycle detected