fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
625 B22 linesraw
1error: expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `unsafe`, or `use`, found keyword `pub`
2  --> $DIR/duplicate-visibility.rs:4:9
3   |
4LL | extern "C" {
5   |            - while parsing this item list starting here
6LL |     pub pub fn foo();
7   |         ^^^
8   |         |
9   |         expected one of 8 possible tokens
10   |         help: there is already a visibility modifier, remove one
11...
12LL | }
13   | - the item list ends here
14   |
15note: explicit visibility first seen here
16  --> $DIR/duplicate-visibility.rs:4:5
17   |
18LL |     pub pub fn foo();
19   |     ^^^
20
21error: aborting due to previous error
22