diff options
| author | Amjad Alsharafi <amjadsharafi10@gmail.com> | 2020-08-31 07:01:32 +0800 |
|---|---|---|
| committer | Amjad Alsharafi <amjadsharafi10@gmail.com> | 2020-09-15 14:23:20 +0800 |
| commit | afb9eeb1b9ea16ca65e38673a0ef3e7be81d7252 (patch) | |
| tree | 71e30954b3c56173429cbf5b613aa0049824a271 /compiler/rustc_error_codes/src | |
| parent | da700cba08a2b194d19e63d3c51ebadce96fe46b (diff) | |
| download | rust-afb9eeb1b9ea16ca65e38673a0ef3e7be81d7252.tar.gz rust-afb9eeb1b9ea16ca65e38673a0ef3e7be81d7252.zip | |
Disabled error `E0007` from rustc_error_codes
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0007.md | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0007.md b/compiler/rustc_error_codes/src/error_codes/E0007.md index 2be7870d5ae..2c22b86af92 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0007.md +++ b/compiler/rustc_error_codes/src/error_codes/E0007.md @@ -1,3 +1,5 @@ +#### Note: this error code is no longer emitted by the compiler. + This error indicates that the bindings in a match arm would require a value to be moved into more than one location, thus violating unique ownership. Code like the following is invalid as it requires the entire `Option<String>` to be @@ -6,11 +8,13 @@ inner `String` to be moved into a variable called `s`. Erroneous code example: -```compile_fail,E0007 +```compile_fail,E0382 +#![feature(bindings_after_at)] + let x = Some("s".to_string()); match x { - op_string @ Some(s) => {}, // error: cannot bind by-move with sub-bindings + op_string @ Some(s) => {}, // error: use of moved value None => {}, } ``` |
