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
635 B
Plaintext
Raw Normal View History

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