7 lines
165 B
Rust
7 lines
165 B
Rust
|
// error-pattern:tried to deinitialize a variable declared in a different
|
||
|
fn test(-x: uint) {}
|
||
|
|
||
|
fn main() {
|
||
|
let i = 3u;
|
||
|
uint::range(0u, 10u) {|_x| test(i)}
|
||
|
}
|