1
Fork 0
rust/src/test/ui/async-await/no-async-const.rs

6 lines
145 B
Rust
Raw Normal View History

2019-06-24 17:48:21 -07:00
// edition:2018
// compile-flags: --crate-type lib
pub async const fn x() {}
2019-10-22 11:46:19 -07:00
//~^ ERROR expected one of `fn` or `unsafe`, found keyword `const`