]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/no-async-const.rs
Rollup merge of #107076 - megakorre:106419_add_test_case, r=compiler-errors
[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`