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 help: consider cloning the value if the performance cost is acceptable
13 LL | let y = x.clone();
16 error[E0382]: use of moved value: `x`
17 --> $DIR/ref-suggestion.rs:8:5
20 | - move occurs because `x` has type `Vec<i32>`, which does not implement the `Copy` trait
24 | ^ value used here after move
26 help: consider cloning the value if the performance cost is acceptable
28 LL | let mut y = x.clone();
31 error[E0382]: use of partially moved value: `x`
32 --> $DIR/ref-suggestion.rs:16:5
34 LL | (Some(y), ()) => {},
35 | - value partially moved here
38 | ^ value used here after partial move
40 = note: partial move occurs because value has type `Vec<i32>`, which does not implement the `Copy` trait
41 help: borrow this binding in the pattern to avoid moving the value
43 LL | (Some(ref y), ()) => {},
46 error: aborting due to 3 previous errors
48 For more information about this error, try `rustc --explain E0382`.