]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issue-87694-duplicated-pub.stderr
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / parser / issue-87694-duplicated-pub.stderr
1 error: expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub`
2   --> $DIR/issue-87694-duplicated-pub.rs:1:11
3    |
4 LL | 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    |
10 note: explicit visibility first seen here
11   --> $DIR/issue-87694-duplicated-pub.rs:1:1
12    |
13 LL | pub const pub fn test() {}
14    | ^^^
15
16 error: aborting due to previous error
17