From 0642d99e81738a5822ddd54cd2db2707ad75db56 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Sun, 23 Aug 2015 04:34:44 +0530 Subject: [PATCH] add help for E0390 --- src/librustc_typeck/coherence/orphan.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_typeck/coherence/orphan.rs b/src/librustc_typeck/coherence/orphan.rs index 8076e63cc55c..0f2232501837 100644 --- a/src/librustc_typeck/coherence/orphan.rs +++ b/src/librustc_typeck/coherence/orphan.rs @@ -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"); } } }