2012-06-15 12:24:12 -07:00
|
|
|
// error-pattern:moving out of immutable variable declared in an outer block
|
2012-03-17 14:39:15 -07:00
|
|
|
fn test(-x: uint) {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let i = 3u;
|
2012-05-26 00:32:08 -07:00
|
|
|
for uint::range(0u, 10u) {|_x| test(i)}
|
2012-06-15 12:24:12 -07:00
|
|
|
}
|