]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-unsafe-async.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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`