v2 / vlib / v / checker / tests / for_match_err.out
7 lines · 7 sloc · 226 bytes · e2e5cf8db56f3562c7baa735061690be936bdf3e
Raw
1vlib/v/checker/tests/for_match_err.vv:3:7: error: cannot use `match` in `for` loop
2 1 | fn main() {
3 2 | mut a := 2
4 3 | for match a {
5 | ~~~~~
6 4 | 2 {
7 5 | println('a == 2')
8