add help for E0390
This commit is contained in:
parent
a37af48ff1
commit
0642d99e81
1 changed files with 2 additions and 0 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue