]>
git.proxmox.com Git - rustc.git/blob - tests/ui/moves/move-out-of-tuple-field.rs
1 struct Foo(Box
<isize>);
6 let x
: (Box
<_
>,) = (Box
::new(1),);
8 let z
= x
.0; //~ ERROR use of moved value: `x.0`
10 let x
= Foo(Box
::new(1));
12 let z
= x
.0; //~ ERROR use of moved value: `x.0`