]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/duplicate-visibility.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / parser / duplicate-visibility.rs
CommitLineData
74b04a01
XL
1fn main() {}
2
a2a8927a 3extern "C" { //~ NOTE while parsing this item list starting here
223e47cc 4 pub pub fn foo();
923072b8
FG
5 //~^ ERROR expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `unsafe`, or `use`, found keyword `pub`
6 //~| NOTE expected one of 8 possible tokens
a2a8927a
XL
7 //~| HELP there is already a visibility modifier, remove one
8 //~| NOTE explicit visibility first seen here
9} //~ NOTE the item list ends here