Skip to content

Commit ca5bbd1

Browse files
Clean up E0368 and E0369 explanations
1 parent 01a8b5f commit ca5bbd1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/librustc_error_codes/error_codes/E0368.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
This error indicates that a binary assignment operator like `+=` or `^=` was
2-
applied to a type that doesn't support it. For example:
1+
A binary assignment operator like `+=` or `^=` was applied to a type that
2+
doesn't support it.
3+
4+
Erroneous code example:
35

46
```compile_fail,E0368
57
let mut x = 12f32; // error: binary operation `<<` cannot be applied to

src/librustc_error_codes/error_codes/E0369.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
A binary operation was attempted on a type which doesn't support it.
2+
23
Erroneous code example:
34

45
```compile_fail,E0369

0 commit comments

Comments
 (0)