]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/duplicate-visibility.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / parser / duplicate-visibility.stderr
CommitLineData
6a06907d
XL
1error: 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 4LL | extern "C" {
6a06907d 5 | - while parsing this item list starting here
74b04a01 6LL | 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`
11LL |
74b04a01 12LL | }
6a06907d 13 | - the item list ends here
0bf4aa26 14
6a06907d 15error: aborting due to previous error
0bf4aa26 16