add help for E0390

This commit is contained in:
Manish Goregaokar 2015-08-23 04:34:44 +05:30 committed by Guillaume Gomez
parent a37af48ff1
commit 0642d99e81

View file

@ -50,6 +50,8 @@ impl<'cx, 'tcx> OrphanChecker<'cx, 'tcx> {
span_err!(self.tcx.sess, span, E0390,
"only a single inherent implementation marked with `#[lang = \"{}\"]` \
is allowed for the `{}` primitive", lang, ty);
span_help!(self.tcx.sess, span,
"consider using a trait to implement these methods");
}
}
}