]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-unsafe-async.rs
Merge commit 'efa8f5521d3813cc897ba29ea0ef98c7aef66bb6' into rustfmt-subtree
[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`