]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/no-async-const.rs
Rollup merge of #107114 - Erk-:add-absolute-note-to-path-join, r=m-ou-se
[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`