]> git.proxmox.com Git - rustc.git/blame - src/test/ui/moves/move-2-unique.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / moves / move-2-unique.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(dead_code)]
223e47cc 3
c34b1796 4struct X { x: isize, y: isize, z: isize }
223e47cc 5
1a4d82fc 6pub fn main() {
c295e0f8 7 let x: Box<_> = Box::new(X {x: 1, y: 2, z: 3});
1a4d82fc 8 let y = x;
62682a34 9 assert_eq!(y.y, 2);
1a4d82fc 10}