]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-const-async.rs
Rollup merge of #63737 - HowJMay:fix_naming, r=jonas-schievink
[rust.git] / src / test / ui / async-await / no-const-async.rs
1 // compile-fail
2 // edition:2018
3 // compile-flags: --crate-type lib
4
5 pub const async fn x() {}
6 //~^ ERROR expected identifier, found reserved keyword `async`
7 //~^^ expected `:`, found keyword `fn`