#49133 - Reworded the Error message: "pub not needed here" message

This commit is contained in:
Dileep Bapat 2018-03-19 16:44:58 +05:30
parent aafe7d89f0
commit 3799866063

View File

@ -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);