9 lines
136 B
Rust
9 lines
136 B
Rust
fn main() {
|
|
let i = ~mut 1;
|
|
// Should be a copy
|
|
let j = i;
|
|
*i = 2;
|
|
*j = 3;
|
|
assert *i == 2;
|
|
assert *j == 3;
|
|
} |