rust/tests/ui/async-await/no-const-async.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
160 B
Rust
Raw Normal View History

2019-06-24 19:48:21 -05:00
// edition:2018
// compile-flags: --crate-type lib
pub const async fn x() {}
//~^ ERROR functions cannot be both `const` and `async`
//~| ERROR cycle detected