#49133 - Reworded the Error message: "pub not needed here" message
This commit is contained in:
parent
3799866063
commit
a8f59aaef9
1 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ error[E0449]: unnecessary visibility qualifier
|
|||
--> $DIR/E0449.rs:17:1
|
||||
|
|
||||
LL | pub impl Bar {} //~ ERROR E0449
|
||||
| ^^^ `pub` not needed here
|
||||
| ^^^ `pub` not permitted here because it's implied
|
||||
|
|
||||
= note: place qualifiers on individual impl items instead
|
||||
|
||||
|
|
@ -10,13 +10,13 @@ error[E0449]: unnecessary visibility qualifier
|
|||
--> $DIR/E0449.rs:19:1
|
||||
|
|
||||
LL | pub impl Foo for Bar { //~ ERROR E0449
|
||||
| ^^^ `pub` not needed here
|
||||
| ^^^ `pub` not permitted here because it's implied
|
||||
|
||||
error[E0449]: unnecessary visibility qualifier
|
||||
--> $DIR/E0449.rs:20:5
|
||||
|
|
||||
LL | pub fn foo() {} //~ ERROR E0449
|
||||
| ^^^ `pub` not needed here
|
||||
| ^^^ `pub` not permitted here because it's implied
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue