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.

6 lines
136 B
Rust
Raw Normal View History

2019-06-25 00:48:21 +00:00
//@ edition:2018
//@ compile-flags: --crate-type lib
pub const async fn x() {}
//~^ ERROR functions cannot be both `const` and `async`