10 lines
114 B
Rust
10 lines
114 B
Rust
// error-pattern:borrowed
|
|
|
|
fn main() {
|
|
let x = @mut 3;
|
|
let y: &mut int = x;
|
|
let z = x;
|
|
*z = 5;
|
|
}
|
|
|