rust/src/test/run-pass/unique-mutable.rs

5 lines
65 B
Rust
Raw Normal View History

fn main() {
2012-03-26 20:35:18 -05:00
let i = ~mut 0;
*i = 1;
assert *i == 1;
}