]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-unsafe-async.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[rust.git] / src / test / ui / async-await / no-unsafe-async.rs
1 // edition:2018
2
3 struct S;
4
5 impl S {
6     #[cfg(FALSE)]
7     unsafe async fn g() {} //~ ERROR expected one of `extern` or `fn`, found keyword `async`
8 }
9
10 #[cfg(FALSE)]
11 unsafe async fn f() {} //~ ERROR expected one of `extern` or `fn`, found keyword `async`