1 error: expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `pub`, `unsafe`, or `use`, found keyword `pub`
2 --> $DIR/duplicate-visibility.rs:4:9
5 | - while parsing this item list starting here
9 | expected one of 9 possible tokens
10 | help: there is already a visibility modifier, remove one
13 | - the item list ends here
15 note: explicit visibility first seen here
16 --> $DIR/duplicate-visibility.rs:4:5
18 LL | pub pub fn foo();
21 error: aborting due to previous error