diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-02-24 20:10:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-24 20:10:15 +0100 |
| commit | cfed378da225b3cced2b1b1d190e4bf77096ff54 (patch) | |
| tree | 0fb4ad1121946fea489ab5c7939c697ceab587e2 | |
| parent | 3e7a18e5e5efb870b9c4c7c4bd7a310270187213 (diff) | |
| parent | ca5bbd190a218e664a775de90828fb381679ec9f (diff) | |
| download | rust-cfed378da225b3cced2b1b1d190e4bf77096ff54.tar.gz rust-cfed378da225b3cced2b1b1d190e4bf77096ff54.zip | |
Rollup merge of #69427 - GuillaumeGomez:cleanup-e0368-e0369, r=Dylan-DPC
Cleanup e0368 e0369 r? @Dylan-DPC
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0368.md | 6 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0369.md | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/librustc_error_codes/error_codes/E0368.md b/src/librustc_error_codes/error_codes/E0368.md index 0bb283258c4..7b9d9334821 100644 --- a/src/librustc_error_codes/error_codes/E0368.md +++ b/src/librustc_error_codes/error_codes/E0368.md @@ -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 diff --git a/src/librustc_error_codes/error_codes/E0369.md b/src/librustc_error_codes/error_codes/E0369.md index 397979e5641..ab0f4b40843 100644 --- a/src/librustc_error_codes/error_codes/E0369.md +++ b/src/librustc_error_codes/error_codes/E0369.md @@ -1,4 +1,5 @@ A binary operation was attempted on a type which doesn't support it. + Erroneous code example: ```compile_fail,E0369 |
