Sign in
android
/
toolchain
/
rustc
/
refs/heads/upstream-master
/
.
/
src
/
test
/
ui
/
async-await
/
no-unsafe-async.rs
blob: 1ac1bdffda9476615be71d2c28f92504e19985f5 [
file
] [
log
] [
blame
]
// edition:2018
struct
S
;
impl
S
{
#[
cfg
(
FALSE
)]
unsafe
async
fn
g
()
{}
//~ ERROR expected one of `extern` or `fn`, found keyword `async`
}
#[
cfg
(
FALSE
)]
unsafe
async
fn
f
()
{}
//~ ERROR expected one of `extern`, `fn`, or `{`, found keyword `async`