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