rust/tests/ui/parser/duplicate-visibility.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
625 B
Plaintext
Raw Normal View History

error: expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `unsafe`, or `use`, found keyword `pub`
--> $DIR/duplicate-visibility.rs:4:9
|
2020-09-01 17:12:52 -04:00
LL | extern "C" {
| - while parsing this item list starting here
LL | pub pub fn foo();
| ^^^
| |
| 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
...
LL | }
| - 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
error: aborting due to previous error
2018-10-20 23:36:17 +03:00