v/vlib/v/checker/tests/mut_args_warning.vv

6 lines
69 B
V

fn f(x mut []int) { x[0] = 1 }
fn main() {
mut x := [0]
f(mut x)
}