]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/no-const-async.rs
Rollup merge of #107108 - sulami:issue-83968-doc-alias-typo-suggestions, r=compiler...
[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