]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-76437-const.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / parser / issues / issue-76437-const.stderr
1 error: expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub`
2   --> $DIR/issue-76437-const.rs:4:11
3    |
4 LL |     const pub fn t() {}
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