rust/src/test/compile-fail/issue-1965.rs

7 lines
165 B
Rust
Raw Normal View History

// 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)}
}