]> git.lizzy.rs Git - rust.git/blob - src/test/ui/moves/move-2-unique.rs
Auto merge of #73660 - flip1995:clippyup, r=nikomatsakis
[rust.git] / src / test / ui / moves / move-2-unique.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![feature(box_syntax)]
4
5 struct X { x: isize, y: isize, z: isize }
6
7 pub fn main() {
8     let x: Box<_> = box X{x: 1, y: 2, z: 3};
9     let y = x;
10     assert_eq!(y.y, 2);
11 }