rust/src/test/run-pass/simple-regions.rs

11 lines
141 B
Rust

fn main() {
unsafe{
let x: int = 3;
let y: &mutable int = &mutable x;
*y = 5;
log (debug, *y);
}
}