summary refs log tree commit diff
path: root/src/test/ui/parser/duplicate-visibility.stderr
blob: 6ac27078ea387f93b16dffde59431ce82c9435bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `pub`, `unsafe`, or `use`, found keyword `pub`
  --> $DIR/duplicate-visibility.rs:6:9
   |
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

error: aborting due to previous error