]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/no-const-async.rs
Rollup merge of #106973 - oli-obk:tait_ice_closure_in_impl_header, r=lcnr
[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