help: borrow this field in the pattern to avoid moving `s.0`
|
LL | if let Some(ref mut x) = s {
- | ^^^
+ | +++
error[E0382]: use of partially moved value: `e`
--> $DIR/move-in-pattern-mut.rs:22:9
help: borrow this field in the pattern to avoid moving `e.s`
|
LL | let E::V { s: ref mut x } = e;
- | ^^^
+ | +++
error: aborting due to 2 previous errors