about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-87694-misplaced-pub.stderr
blob: d35e09dceaf7f705070b9ace86efc1b726ab867e (plain)
1
2
3
4
5
6
7
8
9
10
11
error: expected one of `async`, `extern`, `fn`, `safe`, or `unsafe`, found keyword `pub`
  --> $DIR/issue-87694-misplaced-pub.rs:1:7
   |
LL | const pub fn test() {}
   | ------^^^
   | |     |
   | |     expected one of `async`, `extern`, `fn`, `safe`, or `unsafe`
   | help: visibility `pub` must come before `const`: `pub const`

error: aborting due to 1 previous error