diff options
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##" |
