error[E0007]: cannot bind by-move with sub-bindings | |
--> $DIR/E0007.rs:4:9 | |
| | |
LL | op_string @ Some(s) => {}, | |
| ^^^^^^^^^^^^^^^^^^^ binds an already bound by-move value by moving it | |
error[E0303]: pattern bindings are not allowed after an `@` | |
--> $DIR/E0007.rs:4:26 | |
| | |
LL | op_string @ Some(s) => {}, | |
| ^ not allowed after `@` | |
error: aborting due to 2 previous errors | |
Some errors occurred: E0007, E0303. | |
For more information about an error, try `rustc --explain E0007`. |