2024-05-23 10:01:05 -03:00
|
|
|
error: expected one of `async`, `extern`, `fn`, `safe`, or `unsafe`, found keyword `pub`
|
2021-08-10 01:36:39 +02:00
|
|
|
--> $DIR/issue-87694-duplicated-pub.rs:1:11
|
|
|
|
|
|
|
|
|
LL | pub const pub fn test() {}
|
|
|
|
| ^^^
|
|
|
|
| |
|
2024-05-23 10:01:05 -03:00
|
|
|
| expected one of `async`, `extern`, `fn`, `safe`, or `unsafe`
|
2021-10-24 15:11:11 +02:00
|
|
|
| help: there is already a visibility modifier, remove one
|
2021-08-10 01:36:39 +02:00
|
|
|
|
|
|
|
|
note: explicit visibility first seen here
|
|
|
|
--> $DIR/issue-87694-duplicated-pub.rs:1:1
|
|
|
|
|
|
|
|
|
LL | pub const pub fn test() {}
|
|
|
|
| ^^^
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-08-10 01:36:39 +02:00
|
|
|
|