]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-const-async.rs
Rollup merge of #102215 - alexcrichton:wasm-link-whole-archive, r=estebank
[rust.git] / src / test / 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