]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/no-unsafe-async.rs
Rollup merge of #105641 - Amanieu:btree_cursor, r=m-ou-se
[rust.git] / tests / 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`