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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
269 B
Rust
Raw Normal View History

//@ edition:2018
struct S;
impl S {
#[cfg(FALSE)]
2019-10-22 18:46:19 +00: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`
fn main() {}