File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ impl<'a> AstValidator<'a> {
67
67
E0449 ,
68
68
"unnecessary visibility qualifier" ) ;
69
69
if vis. node == VisibilityKind :: Public {
70
- err. span_label ( vis. span , "`pub` not needed here" ) ;
70
+ err. span_label ( vis. span , "`pub` not permitted here because it's implied " ) ;
71
71
}
72
72
if let Some ( note) = note {
73
73
err. note ( note) ;
Original file line number Diff line number Diff line change @@ -2,21 +2,21 @@ error[E0449]: unnecessary visibility qualifier
2
2
--> $DIR/E0449.rs:17:1
3
3
|
4
4
LL | pub impl Bar {} //~ ERROR E0449
5
- | ^^^ `pub` not needed here
5
+ | ^^^ `pub` not permitted here because it's implied
6
6
|
7
7
= note: place qualifiers on individual impl items instead
8
8
9
9
error[E0449]: unnecessary visibility qualifier
10
10
--> $DIR/E0449.rs:19:1
11
11
|
12
12
LL | pub impl Foo for Bar { //~ ERROR E0449
13
- | ^^^ `pub` not needed here
13
+ | ^^^ `pub` not permitted here because it's implied
14
14
15
15
error[E0449]: unnecessary visibility qualifier
16
16
--> $DIR/E0449.rs:20:5
17
17
|
18
18
LL | pub fn foo() {} //~ ERROR E0449
19
- | ^^^ `pub` not needed here
19
+ | ^^^ `pub` not permitted here because it's implied
20
20
21
21
error: aborting due to 3 previous errors
22
22
You can’t perform that action at this time.
0 commit comments