We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 686682d commit c61e641Copy full SHA for c61e641
src/librustc_passes/ast_validation.rs
@@ -274,7 +274,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
274
if defaultness == Defaultness::Default {
275
self.err_handler()
276
.struct_span_err(item.span, "inherent impls cannot be default")
277
- .help("maybe a missing `for` keyword?").emit();
+ .note("only trait implementations may be annotated with default").emit();
278
}
279
280
ItemKind::ForeignMod(..) => {
0 commit comments