parse full visibility when recovering
This commit is contained in:
parent
b2b9555f95
commit
1aa43af370
3 changed files with 19 additions and 7 deletions
|
|
@ -3,7 +3,9 @@
|
|||
enum Bird {
|
||||
pub Duck,
|
||||
//~^ ERROR unnecessary visibility qualifier
|
||||
Goose
|
||||
Goose,
|
||||
pub(crate) Dove
|
||||
//~^ ERROR unnecessary visibility qualifier
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,5 +4,11 @@ error: unnecessary visibility qualifier
|
|||
LL | pub Duck,
|
||||
| ^^^ `pub` not permitted here
|
||||
|
||||
error: aborting due to previous error
|
||||
error: unnecessary visibility qualifier
|
||||
--> $DIR/issue-28433.rs:7:5
|
||||
|
|
||||
LL | pub(crate) Dove
|
||||
| ^^^^^^^^^^ `pub` not permitted here
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue