2022-05-01 12:05:35 -05:00
|
|
|
error: expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `unsafe`, or `use`, found keyword `pub`
|
2021-04-03 06:05:11 -05:00
|
|
|
--> $DIR/duplicate-visibility.rs:4:9
|
2020-02-21 23:57:31 -06:00
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
LL | extern "C" {
|
2020-09-07 09:27:00 -05:00
|
|
|
| - while parsing this item list starting here
|
2020-02-21 23:57:31 -06:00
|
|
|
LL | pub pub fn foo();
|
2020-09-07 09:27:00 -05:00
|
|
|
| ^^^
|
|
|
|
| |
|
2022-05-01 12:05:35 -05:00
|
|
|
| expected one of 8 possible tokens
|
2021-10-24 08:11:11 -05:00
|
|
|
| help: there is already a visibility modifier, remove one
|
2021-08-09 19:00:25 -05:00
|
|
|
...
|
2020-02-21 23:57:31 -06:00
|
|
|
LL | }
|
2020-09-07 09:27:00 -05:00
|
|
|
| - the item list ends here
|
2021-08-09 19:00:25 -05:00
|
|
|
|
|
|
|
|
note: explicit visibility first seen here
|
|
|
|
--> $DIR/duplicate-visibility.rs:4:5
|
|
|
|
|
|
|
|
|
LL | pub pub fn foo();
|
|
|
|
| ^^^
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2020-09-07 09:27:00 -05:00
|
|
|
error: aborting due to previous error
|
2018-10-20 15:36:17 -05:00
|
|
|
|