blob: 6f686a7e50437e0de8d2c3574b66d65a61a9d089 (
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-87694-misplaced-pub.rs:1:7
|
LL | const pub fn test() {}
| ------^^^
| | |
| | expected one of `async`, `extern`, `fn`, or `unsafe`
| help: visibility `pub` must come before `const`: `pub const`
error: aborting due to 1 previous error
|