]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/duplicate-visibility.stderr
Auto merge of #106916 - lukas-code:overlapping-substs, r=estebank
[rust.git] / tests / ui / parser / duplicate-visibility.stderr
1 error: expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `unsafe`, or `use`, found keyword `pub`
2   --> $DIR/duplicate-visibility.rs:4:9
3    |
4 LL | extern "C" {
5    |            - while parsing this item list starting here
6 LL |     pub pub fn foo();
7    |         ^^^
8    |         |
9    |         expected one of 8 possible tokens
10    |         help: there is already a visibility modifier, remove one
11 ...
12 LL | }
13    | - the item list ends here
14    |
15 note: explicit visibility first seen here
16   --> $DIR/duplicate-visibility.rs:4:5
17    |
18 LL |     pub pub fn foo();
19    |     ^^^
20
21 error: aborting due to previous error
22