]> git.proxmox.com Git - rustc.git/blame - src/test/ui/ref-suggestion.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / ref-suggestion.rs
CommitLineData
c1a9b12d
SL
1fn 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}