]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/borrowck-move-subcomponent.rs
1 // Tests that the borrow checker checks all components of a path when moving
13 let a
: S
= S { x : Box::new(1) }
;
15 let S { x: ax }
= a
; //~ ERROR cannot move out