Skip to content

Commit 0642d99

Browse files
ManishearthGuillaumeGomez
authored andcommitted
add help for E0390
1 parent a37af48 commit 0642d99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_typeck/coherence/orphan.rs

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ impl<'cx, 'tcx> OrphanChecker<'cx, 'tcx> {
5050
span_err!(self.tcx.sess, span, E0390,
5151
"only a single inherent implementation marked with `#[lang = \"{}\"]` \
5252
is allowed for the `{}` primitive", lang, ty);
53+
span_help!(self.tcx.sess, span,
54+
"consider using a trait to implement these methods");
5355
}
5456
}
5557
}

0 commit comments

Comments
 (0)