We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pub
1 parent 3799866 commit a8f59aaCopy full SHA for a8f59aa
src/test/ui/error-codes/E0449.stderr
@@ -2,21 +2,21 @@ error[E0449]: unnecessary visibility qualifier
2
--> $DIR/E0449.rs:17:1
3
|
4
LL | pub impl Bar {} //~ ERROR E0449
5
- | ^^^ `pub` not needed here
+ | ^^^ `pub` not permitted here because it's implied
6
7
= note: place qualifiers on individual impl items instead
8
9
error[E0449]: unnecessary visibility qualifier
10
--> $DIR/E0449.rs:19:1
11
12
LL | pub impl Foo for Bar { //~ ERROR E0449
13
14
15
16
--> $DIR/E0449.rs:20:5
17
18
LL | pub fn foo() {} //~ ERROR E0449
19
20
21
error: aborting due to 3 previous errors
22
0 commit comments