]>
Commit | Line | Data |
---|---|---|
6a06907d XL |
1 | error: expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `pub`, `unsafe`, or `use`, found keyword `pub` |
2 | --> $DIR/duplicate-visibility.rs:6:9 | |
74b04a01 | 3 | | |
5869c6ff | 4 | LL | extern "C" { |
6a06907d | 5 | | - while parsing this item list starting here |
74b04a01 | 6 | LL | pub pub fn foo(); |
6a06907d XL |
7 | | ^^^ |
8 | | | | |
9 | | expected one of 9 possible tokens | |
10 | | help: visibility `pub` must come before `pub pub`: `pub pub pub` | |
11 | LL | | |
74b04a01 | 12 | LL | } |
6a06907d | 13 | | - the item list ends here |
0bf4aa26 | 14 | |
6a06907d | 15 | error: aborting due to previous error |
0bf4aa26 | 16 |