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