Skip to content

Commit

Permalink
add help for E0390
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth authored and GuillaumeGomez committed Aug 22, 2015
1 parent a37af48 commit 0642d99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_typeck/coherence/orphan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
}
Expand Down

0 comments on commit 0642d99

Please sign in to comment.