]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-unsafe-async.stderr
Rollup merge of #68985 - daboross:fix-35813, r=Centril
[rust.git] / src / test / ui / async-await / no-unsafe-async.stderr
1 error: expected one of `extern` or `fn`, found keyword `async`
2   --> $DIR/no-unsafe-async.rs:7:12
3    |
4 LL | impl S {
5    |        - while parsing this item list starting here
6 LL |     #[cfg(FALSE)]
7 LL |     unsafe async fn g() {}
8    |            ^^^^^ expected one of `extern` or `fn`
9 LL | }
10    | - the item list ends here
11
12 error: expected one of `extern` or `fn`, found keyword `async`
13   --> $DIR/no-unsafe-async.rs:11:8
14    |
15 LL | unsafe async fn f() {}
16    |        ^^^^^ expected one of `extern` or `fn`
17
18 error: aborting due to 2 previous errors
19