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 16:12:52 -05: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 08:11:11 -05:00
| help: there is already a visibility modifier, remove one
2021-08-09 19:00:25 -05:00
...
LL | }
| - 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
error: aborting due to previous error
2018-10-20 15:36:17 -05:00