Skip to content

Commit 633fe44

Browse files
Add tip for E0369
1 parent 5650709 commit 633fe44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,6 +2731,9 @@ let x = 12u32; // the `u32` type does implement it:
27312731
27322732
x << 2; // ok!
27332733
```
2734+
2735+
It is also possible to overload most operators for your own type by
2736+
implementing traits from `std::ops`.
27342737
"##,
27352738

27362739
E0371: r##"

0 commit comments

Comments
 (0)