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

12 lines
254 B
Rust
Raw Normal View History

// edition:2018
struct S;
impl S {
#[cfg(FALSE)]
2019-10-22 13:46:19 -05:00
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` or `fn`, found keyword `async`