1 error: expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub`
2 --> $DIR/issue-87694-duplicated-pub.rs:1:11
4 LL | pub const pub fn test() {}
7 | expected one of `async`, `extern`, `fn`, or `unsafe`
8 | help: there is already a visibility modifier, remove one
10 note: explicit visibility first seen here
11 --> $DIR/issue-87694-duplicated-pub.rs:1:1
13 LL | pub const pub fn test() {}
16 error: aborting due to previous error