8 lines
173 B
Rust
8 lines
173 B
Rust
// error-pattern:moving out of immutable variable declared in an outer block
|
|
fn test(-x: uint) {}
|
|
|
|
fn main() {
|
|
let i = 3u;
|
|
for uint::range(0u, 10u) {|_x| test(i)}
|
|
}
|