fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error: visibility `pub` is not followed by an item 2 --> $DIR/duplicate-visibility.rs:4:5 3 | 4LL | pub pub fn foo(); 5 | ^^^ the visibility 6 | 7 = help: you likely meant to define an item, e.g., `pub fn foo() {}` 8 9error: non-item in item list 10 --> $DIR/duplicate-visibility.rs:4:9 11 | 12LL | extern { 13 | - item list starts here 14LL | pub pub fn foo(); 15 | ^^^ non-item starts here 16... 17LL | } 18 | - item list ends here 19 20error: aborting due to 2 previous errors 21