1
Fork 0

Clean up E0368 and E0369 explanations

This commit is contained in:
Guillaume Gomez 2020-02-24 12:55:49 +01:00
parent 01a8b5f26e
commit ca5bbd190a
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,7 @@
This error indicates that a binary assignment operator like `+=` or `^=` was
applied to a type that doesn't support it. For example:
A binary assignment operator like `+=` or `^=` was applied to a type that
doesn't support it.
Erroneous code example:
```compile_fail,E0368
let mut x = 12f32; // error: binary operation `<<` cannot be applied to

View file

@ -1,4 +1,5 @@
A binary operation was attempted on a type which doesn't support it.
Erroneous code example:
```compile_fail,E0369