Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
async-await
/
no-unsafe-async.rs
blob: 81e0cd799ad7053d7fa0ee49670c03f8d91b8bf0 [
file
] [
log
] [
blame
]
// edition:2018
struct
S
;
impl
S
{
#[
cfg
(
FALSE
)]
unsafe
async
fn
g
()
{}
//~ ERROR expected one of `extern` or `fn`, found `async`
}
#[
cfg
(
FALSE
)]
unsafe
async
fn
f
()
{}
//~ ERROR expected one of `extern`, `fn`, or `{`, found `async`