summaryrefslogtreecommitdiffstats
path: root/tests/ui/unique/unique-decl-init.rs
blob: 1d70860c7cec0b213ca04cd74dc0671a25595f78 (plain)
1
2
3
4
5
6
7
// run-pass

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