We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a37af48 commit 0642d99Copy full SHA for 0642d99
src/librustc_typeck/coherence/orphan.rs
@@ -50,6 +50,8 @@ impl<'cx, 'tcx> OrphanChecker<'cx, 'tcx> {
50
span_err!(self.tcx.sess, span, E0390,
51
"only a single inherent implementation marked with `#[lang = \"{}\"]` \
52
is allowed for the `{}` primitive", lang, ty);
53
+ span_help!(self.tcx.sess, span,
54
+ "consider using a trait to implement these methods");
55
}
56
57
0 commit comments