summary refs log tree commit diff
path: root/src/test/ui/parser/duplicate-visibility.stderr
blob: d9815fc7395b4f3ebbfef2043f9b8a9e3e6efcae (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:4: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