From 633fe4463940e6d6523ceb9c6267983170761d7e Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 23 Aug 2015 00:52:23 +0200 Subject: [PATCH] Add tip for E0369 --- src/librustc_typeck/diagnostics.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index d35c8244ddb7..ffc38127364b 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -2731,6 +2731,9 @@ let x = 12u32; // the `u32` type does implement it: x << 2; // ok! ``` + +It is also possible to overload most operators for your own type by +implementing traits from `std::ops`. "##, E0371: r##"