Skip to content

Commit c61e641

Browse files
committed
Changed help message to note
1 parent 686682d commit c61e641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_passes/ast_validation.rs

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

0 commit comments

Comments
 (0)