v4 / vlib / v / checker / tests / match_expr_with_none_only.out
19 lines · 19 sloc · 691 bytes · 9760a9c6b258017ed728d323cbcd3f7016c40c3b
Raw
1vlib/v/checker/tests/match_expr_with_none_only.vv:3:3: notice: match is always true
2 1 | fn main() {
3 2 | a := match 1 {
4 3 | 1 { none }
5 | ^
6 4 | else { none }
7 5 | }
8vlib/v/checker/tests/match_expr_with_none_only.vv:2:2: warning: unused variable: `a`
9 1 | fn main() {
10 2 | a := match 1 {
11 | ^
12 3 | 1 { none }
13 4 | else { none }
14vlib/v/checker/tests/match_expr_with_none_only.vv:2:7: error: invalid match expression, must supply at least one value other than `none`
15 1 | fn main() {
16 2 | a := match 1 {
17 | ~~~~~~~~~
18 3 | 1 { none }
19 4 | else { none }
20