summary refs log tree commit diff
path: root/src/test/ui/unique/unique-assign.rs
blob: 5a88df071a0b97e088ae91f24cea3b6843109599 (plain)
1
2
3
4
5
6
7
8
9
// run-pass
#![allow(unused_mut)]
#![feature(box_syntax)]

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