fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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