about summary refs log tree commit diff
path: root/tests/ui/box/unit/unique-assign.rs
blob: 9a2edd806073fdd84e5b0c5feae01f343508cbe3 (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);
}