summaryrefslogtreecommitdiffstats
path: root/tests/ui/box/unit/unique-decl-move.rs
blob: 21187510ff0c5942719eddceda66a1cd0fab20d2 (plain)
1
2
3
4
5
6
7
// run-pass

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