]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-87694-misplaced-pub.stderr
Point (again) to more expressions with their type, even if not fully resolved
[rust.git] / src / test / 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