v/vlib/v/checker/tests/no_warning_for_in_mut_var_u...

8 lines
81 B
V

fn main() {
mut arr := [1, 2, 3]
for mut v in arr {
v = 2
}
println(arr)
}