Use a proper error for unnecessary priv
usage in struct fields.
#13931
Labels
A-parser
Area: The lexing & parsing of Rust source code to an AST
A-visibility
Area: Visibility / privacy
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
This code throws a reserved keyword error instead of warning about the unnecessary visibility.
I think we should handle this case and print a proper error message.
The text was updated successfully, but these errors were encountered: