about summary refs log tree commit diff
path: root/tests/ui/box/unit/unique-autoderef-field.rs
blob: f751801d8dfd66296568341b390adc7557fa2958 (plain)
1
2
3
4
5
6
7
8
9
10
//@ run-pass

struct J { j: isize }

pub fn main() {
    let i: Box<_> = Box::new(J {
        j: 100
    });
    assert_eq!(i.j, 100);
}