blob: 489e8eefb052e6092b3e1ba023d941ccd98bd235 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
error: expected one of `extern` or `fn`, found keyword `const`
--> $DIR/several-kw-jump.rs:9:14
|
LL | async unsafe const fn test() {}
| -------------^^^^^
| | |
| | expected one of `extern` or `fn`
| help: `const` must come before `async unsafe`: `const async unsafe`
|
= note: keyword order for functions declaration is `pub`, `default`, `const`, `async`, `unsafe`, `extern`
error: functions cannot be both `const` and `async`
--> $DIR/several-kw-jump.rs:9:1
|
LL | async unsafe const fn test() {}
| ^^^^^--------^^^^^-------------
| | |
| | `const` because of this
| `async` because of this
error: aborting due to 2 previous errors
|