diff --git a/src/librustc_passes/ast_validation.rs b/src/librustc_passes/ast_validation.rs index 37274d1fc44..1c73ced806e 100644 --- a/src/librustc_passes/ast_validation.rs +++ b/src/librustc_passes/ast_validation.rs @@ -272,7 +272,9 @@ impl<'a> Visitor<'a> for AstValidator<'a> { self.err_handler().span_err(item.span, "inherent impls cannot be negative"); } if defaultness == Defaultness::Default { - self.err_handler().span_err(item.span, "inherent impls cannot be default"); + self.err_handler() + .struct_span_err(item.span, "inherent impls cannot be default") + .help("maybe a missing `for` keyword?"); } } ItemKind::ForeignMod(..) => {