]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/no-unsafe-async.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / async-await / no-unsafe-async.stderr
CommitLineData
e74abb32 1error: expected one of `extern` or `fn`, found keyword `async`
dc9dc135
XL
2 --> $DIR/no-unsafe-async.rs:7:12
3 |
74b04a01
XL
4LL | impl S {
5 | - while parsing this item list starting here
6LL | #[cfg(FALSE)]
dc9dc135 7LL | unsafe async fn g() {}
94222f64
XL
8 | -------^^^^^
9 | | |
10 | | expected one of `extern` or `fn`
11 | help: `async` must come before `unsafe`: `async unsafe`
74b04a01
XL
12LL | }
13 | - the item list ends here
94222f64
XL
14 |
15 = note: keyword order for functions declaration is `default`, `pub`, `const`, `async`, `unsafe`, `extern`
dc9dc135 16
74b04a01 17error: expected one of `extern` or `fn`, found keyword `async`
dc9dc135
XL
18 --> $DIR/no-unsafe-async.rs:11:8
19 |
20LL | unsafe async fn f() {}
94222f64
XL
21 | -------^^^^^
22 | | |
23 | | expected one of `extern` or `fn`
24 | help: `async` must come before `unsafe`: `async unsafe`
25 |
26 = note: keyword order for functions declaration is `default`, `pub`, `const`, `async`, `unsafe`, `extern`
dc9dc135
XL
27
28error: aborting due to 2 previous errors
29