Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
async-await
/
no-async-const.rs
blob: c9941d1c5a00ad037c3db81afba45276fafcd0f4 [
file
] [
log
] [
blame
]
// edition:2018
// compile-flags: --crate-type lib
pub
async
const
fn
x
()
{}
//~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `const`
//~| ERROR functions cannot be both `const` and `async`