]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-unsafe-async.rs
Add 'src/tools/miri/' from commit '75dd959a3a40eb5b4574f8d2e23aa6efbeb33573'
[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`