2019-10-22 13:46:19 -05:00
|
|
|
error: expected one of `extern` or `fn`, found keyword `async`
|
2019-06-29 14:38:26 -05:00
|
|
|
--> $DIR/no-unsafe-async.rs:7:12
|
|
|
|
|
|
2020-02-22 01:16:39 -06:00
|
|
|
LL | impl S {
|
|
|
|
| - while parsing this item list starting here
|
|
|
|
LL | #[cfg(FALSE)]
|
2019-06-29 14:38:26 -05:00
|
|
|
LL | unsafe async fn g() {}
|
2019-10-28 13:08:53 -05:00
|
|
|
| ^^^^^ expected one of `extern` or `fn`
|
2020-02-22 01:16:39 -06:00
|
|
|
LL | }
|
|
|
|
| - the item list ends here
|
2019-06-29 14:38:26 -05:00
|
|
|
|
2020-01-30 06:02:06 -06:00
|
|
|
error: expected one of `extern` or `fn`, found keyword `async`
|
2019-06-29 14:38:26 -05:00
|
|
|
--> $DIR/no-unsafe-async.rs:11:8
|
|
|
|
|
|
|
|
|
LL | unsafe async fn f() {}
|
2020-01-30 06:02:06 -06:00
|
|
|
| ^^^^^ expected one of `extern` or `fn`
|
2019-06-29 14:38:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|