about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2015-08-23 00:52:23 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2015-08-23 00:52:23 +0200
commit633fe4463940e6d6523ceb9c6267983170761d7e (patch)
treef8867136e234d9b715070ae456afb2a9630cf5ad /src
parent565070948f8b2aff522d522b7a4be65790570b41 (diff)
downloadrust-633fe4463940e6d6523ceb9c6267983170761d7e.tar.gz
rust-633fe4463940e6d6523ceb9c6267983170761d7e.zip
Add tip for E0369
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/diagnostics.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index d35c8244ddb..ffc38127364 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##"