rust/tests/ui/parser/issues/issue-87217-keyword-order/const-async-const.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
487 B
Plaintext
Raw Normal View History

error: expected one of `extern`, `fn`, or `unsafe`, found keyword `const`
2021-10-24 08:11:11 -05:00
--> $DIR/const-async-const.rs:5:13
|
LL | const async const fn test() {}
2021-10-24 08:11:11 -05:00
| ^^^^^
| |
| expected one of `extern`, `fn`, or `unsafe`
| help: `const` already used earlier, remove this one
|
2021-10-24 08:11:11 -05:00
note: `const` first seen here
--> $DIR/const-async-const.rs:5:1
|
LL | const async const fn test() {}
| ^^^^^
error: aborting due to previous error