1 error[E0382]: use of partially moved value: `s`
2 --> $DIR/move-in-pattern.rs:19:9
4 LL | if let Some(x) = s {
5 | - value partially moved here
8 | ^ value used here after partial move
10 = note: partial move occurs because value has type `S`, which does not implement the `Copy` trait
11 help: borrow this field in the pattern to avoid moving `s.0`
13 LL | if let Some(ref x) = s {
16 error[E0382]: use of partially moved value: `e`
17 --> $DIR/move-in-pattern.rs:23:9
19 LL | let E::V { s: x } = e;
20 | - value partially moved here
23 | ^ value used here after partial move
25 = note: partial move occurs because value has type `S`, which does not implement the `Copy` trait
26 help: borrow this field in the pattern to avoid moving `e.s`
28 LL | let E::V { s: ref x } = e;
31 error: aborting due to 2 previous errors
33 For more information about this error, try `rustc --explain E0382`.