diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-08-23 00:52:23 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2015-08-23 00:52:23 +0200 |
| commit | 633fe4463940e6d6523ceb9c6267983170761d7e (patch) | |
| tree | f8867136e234d9b715070ae456afb2a9630cf5ad /src | |
| parent | 565070948f8b2aff522d522b7a4be65790570b41 (diff) | |
| download | rust-633fe4463940e6d6523ceb9c6267983170761d7e.tar.gz rust-633fe4463940e6d6523ceb9c6267983170761d7e.zip | |
Add tip for E0369
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 3 |
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##" |
