vxx2 / vlib / v / checker / tests / invalid_mut.out
14 lines · 14 sloc · 439 bytes · 92cafd88510cc6a0908fab43d58837acca68773f
Raw
1vlib/v/checker/tests/invalid_mut.vv:3:5: error: the `mut` keyword is invalid here
2 1 | fn main() {
3 2 | mut x := 0
4 3 | if mut x == 0 {
5 | ~~~
6 4 | println(true)
7 5 | }
8vlib/v/checker/tests/invalid_mut.vv:6:10: error: the `mut` keyword is invalid here
9 4 | println(true)
10 5 | }
11 6 | if 0 == mut x {
12 | ~~~
13 7 | println(true)
14 8 | }
15