]>
Commit | Line | Data |
---|---|---|
c1a9b12d SL |
1 | fn main() { |
2 | let x = vec![1]; | |
3 | let y = x; | |
c1a9b12d SL |
4 | x; //~ ERROR use of moved value |
5 | ||
6 | let x = vec![1]; | |
7 | let mut y = x; | |
c1a9b12d SL |
8 | x; //~ ERROR use of moved value |
9 | ||
10 | let x = (Some(vec![1]), ()); | |
11 | ||
12 | match x { | |
13 | (Some(y), ()) => {}, | |
c1a9b12d SL |
14 | _ => {}, |
15 | } | |
72b1a166 | 16 | x; //~ ERROR use of partially moved value |
c1a9b12d | 17 | } |