summaryrefslogtreecommitdiffstats
path: root/tests/ui/box/unit/unique-autoderef-field.rs
blob: 64147e11f1c0c90a82336791eeaf38822c18767d (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);
}