]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/no-async-const.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / async-await / no-async-const.rs
1 // edition:2018
2 // compile-flags: --crate-type lib
3
4 pub async const fn x() {}
5 //~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `const`