mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
12 lines
356 B
Plaintext
12 lines
356 B
Plaintext
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 previous error
|
|
|