1 error[E0382]: use of moved value: `x`
2 --> $DIR/ref-suggestion.rs:4:5
5 | - move occurs because `x` has type `Vec<i32>`, which does not implement the `Copy` trait
9 | ^ value used here after move
11 error[E0382]: use of moved value: `x`
12 --> $DIR/ref-suggestion.rs:8:5
15 | - move occurs because `x` has type `Vec<i32>`, which does not implement the `Copy` trait
19 | ^ value used here after move
21 error[E0382]: use of partially moved value: `x`
22 --> $DIR/ref-suggestion.rs:16:5
24 LL | (Some(y), ()) => {},
25 | - value partially moved here
28 | ^ value used here after partial move
30 = note: partial move occurs because value has type `Vec<i32>`, which does not implement the `Copy` trait
31 help: borrow this field in the pattern to avoid moving `x.0.0`
33 LL | (Some(ref y), ()) => {},
36 error: aborting due to 3 previous errors
38 For more information about this error, try `rustc --explain E0382`.