Changed help message to note
This commit is contained in:
parent
686682deb3
commit
c61e641ed6
1 changed files with 1 additions and 1 deletions
|
@ -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(..) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue