1
Fork 0

Changed help message to note

This commit is contained in:
Phlosioneer 2018-04-16 16:56:24 -04:00
parent 686682deb3
commit c61e641ed6

View file

@ -274,7 +274,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
if defaultness == Defaultness::Default {
self.err_handler()
.struct_span_err(item.span, "inherent impls cannot be default")
.help("maybe a missing `for` keyword?").emit();
.note("only trait implementations may be annotated with default").emit();
}
}
ItemKind::ForeignMod(..) => {