summary refs log tree commit diff
path: root/src/test/ui/parser/duplicate-visibility.stderr
blob: 36b9efd9dca6e39327220ffd8f218fb0750cff28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error: visibility `pub` is not followed by an item
  --> $DIR/duplicate-visibility.rs:4:5
   |
LL |     pub pub fn foo();
   |     ^^^ the visibility
   |
   = help: you likely meant to define an item, e.g., `pub fn foo() {}`

error: non-item in item list
  --> $DIR/duplicate-visibility.rs:4:9
   |
LL | extern {
   |        - item list starts here
LL |     pub pub fn foo();
   |         ^^^ non-item starts here
...
LL | }
   | - item list ends here

error: aborting due to 2 previous errors