about summary refs log tree commit diff
path: root/tests/ui/moves/move-2.rs
blob: 05abf5002b779d8ddef11c27af3cbe5e0f941559 (plain)
1
2
3
4
5
6
//@ run-pass
#![allow(dead_code)]

struct X { x: isize, y: isize, z: isize }

pub fn main() { let x: Box<_> = Box::new(X {x: 1, y: 2, z: 3}); let y = x; assert_eq!(y.y, 2); }