fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub` 2 --> $DIR/issue-87694-duplicated-pub.rs:1:11 3 | 4LL | pub const pub fn test() {} 5 | ^^^ 6 | | 7 | expected one of `async`, `extern`, `fn`, or `unsafe` 8 | help: there is already a visibility modifier, remove one 9 | 10note: explicit visibility first seen here 11 --> $DIR/issue-87694-duplicated-pub.rs:1:1 12 | 13LL | pub const pub fn test() {} 14 | ^^^ 15 16error: aborting due to previous error 17