v2 / vlib / v / parser / tests / mut_args_warning.out
5 lines · 5 sloc · 196 bytes · 0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1vlib/v/parser/tests/mut_args_warning.vv:1:8: warning: use `mut f Foo` instead of `f mut Foo`
2 1 | fn f(x mut []int) { x[0] = 1 }
3 | ~~~
4 2 | fn main() {
5 3 | mut x := [0]
6