#49133 - Reworded the Error message: "pub
not needed here" message
This commit is contained in:
parent
aafe7d89f0
commit
3799866063
@ -67,7 +67,7 @@ impl<'a> AstValidator<'a> {
|
||||
E0449,
|
||||
"unnecessary visibility qualifier");
|
||||
if vis.node == VisibilityKind::Public {
|
||||
err.span_label(vis.span, "`pub` not needed here");
|
||||
err.span_label(vis.span, "`pub` not permitted here because it's implied");
|
||||
}
|
||||
if let Some(note) = note {
|
||||
err.note(note);
|
||||
|
Loading…
Reference in New Issue
Block a user