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

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