]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issue-87694-misplaced-pub.stderr
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / issue-87694-misplaced-pub.stderr
1 error: expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub`
2   --> $DIR/issue-87694-misplaced-pub.rs:1:7
3    |
4 LL | const pub fn test() {}
5    | ------^^^
6    | |     |
7    | |     expected one of `async`, `extern`, `fn`, or `unsafe`
8    | help: visibility `pub` must come before `const`: `pub const`
9
10 error: aborting due to previous error
11