1
Fork 0
rust/src/test/ui/parser/duplicate-visibility.stderr

17 lines
510 B
Text
Raw Normal View History

error: expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `pub`, `unsafe`, or `use`, found keyword `pub`
--> $DIR/duplicate-visibility.rs:6: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 9 possible tokens
| help: visibility `pub` must come before `pub pub`: `pub pub pub`
LL |
LL | }
| - the item list ends here
2018-10-20 23:36:17 +03:00
error: aborting due to previous error
2018-10-20 23:36:17 +03:00