summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-76437-const.stderr
blob: cf80d9a9037c9707f8fd6fcdaa6bc8bd1578d1fc (plain)
1
2
3
4
5
6
7
8
9
10
11
error: expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub`
  --> $DIR/issue-76437-const.rs:4:11
   |
LL |     const pub fn t() {}
   |     ------^^^
   |     |     |
   |     |     expected one of `async`, `extern`, `fn`, or `unsafe`
   |     help: visibility `pub` must come before `const`: `pub const`

error: aborting due to previous error