]> git.lizzy.rs Git - rust.git/blob - tests/ui/moves/move-2-unique.rs
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / ui / moves / move-2-unique.rs
1 // run-pass
2 #![allow(dead_code)]
3
4 struct X { x: isize, y: isize, z: isize }
5
6 pub fn main() {
7     let x: Box<_> = Box::new(X {x: 1, y: 2, z: 3});
8     let y = x;
9     assert_eq!(y.y, 2);
10 }