2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
struct X { x: isize, y: isize, z: isize }
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2021-08-25 02:39:40 +02:00
|
|
|
pub fn main() { let x: Box<_> = Box::new(X {x: 1, y: 2, z: 3}); let y = x; assert_eq!(y.y, 2); }
|