about summary refs log tree commit diff
path: root/tests/ui/async-await/no-unsafe-async.rs
blob: cc7e89e16cb2b99f7427754444c34ff5d6ca3036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ 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` or `fn`, found keyword `async`

fn main() {}