]>
git.proxmox.com Git - rustc.git/blob - tests/ui/borrowck/issue-83760.rs
4 let mut val
= Some(Struct
);
5 while let Some(foo
) = val
{ //~ ERROR use of moved value
15 let mut foo
= Some(Struct
);
16 let _x
= foo
.unwrap();
21 let _y
= foo
; //~ ERROR use of moved value: `foo`
25 let mut foo
= Some(Struct
);
26 let _x
= foo
.unwrap();
37 let _y
= foo
; //~ ERROR use of moved value: `foo`