41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
368 B
Plaintext
12 lines
368 B
Plaintext
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 1 previous error
|
|
|