v4 / vlib / v / checker / tests / match_mut_with_immutable_var_err.out
7 lines · 7 sloc · 282 bytes · 173e6a943b43c332c1ead547e165b55ad4b74622
Raw
1vlib/v/checker/tests/match_mut_with_immutable_var_err.vv:5:12: error: `i` is immutable, declare it with `mut` to make it mutable
2 3 | fn main() {
3 4 | i := Int(0)
4 5 | match mut i {
5 | ^
6 6 | int { i = 1 }
7 7 | u8 { i = 2 }
8