Clean up E0368 and E0369 explanations
This commit is contained in:
parent
01a8b5f26e
commit
ca5bbd190a
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
This error indicates that a binary assignment operator like `+=` or `^=` was
|
A binary assignment operator like `+=` or `^=` was applied to a type that
|
||||||
applied to a type that doesn't support it. For example:
|
doesn't support it.
|
||||||
|
|
||||||
|
Erroneous code example:
|
||||||
|
|
||||||
```compile_fail,E0368
|
```compile_fail,E0368
|
||||||
let mut x = 12f32; // error: binary operation `<<` cannot be applied to
|
let mut x = 12f32; // error: binary operation `<<` cannot be applied to
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
A binary operation was attempted on a type which doesn't support it.
|
A binary operation was attempted on a type which doesn't support it.
|
||||||
|
|
||||||
Erroneous code example:
|
Erroneous code example:
|
||||||
|
|
||||||
```compile_fail,E0369
|
```compile_fail,E0369
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue