summaryrefslogtreecommitdiffstats
path: root/tests/ui/box/unit/unique-assign.rs
blob: d598744f145b2a08bbc9b4d4d527dd7b82b62fa7 (plain)
1
2
3
4
5
6
7
8
// run-pass
#![allow(unused_mut)]

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