v2 / vlib / v / checker / tests / assign_blank_none_err.out
12 lines · 12 sloc · 401 bytes · 75e906538f08aff110b9a1d16383369ba1fde41f
Raw
1vlib/v/checker/tests/assign_blank_none_err.vv:2:7: error: cannot assign a `none` value to a variable
2 1 | fn main() {
3 2 | _ := none
4 | ~~~~
5 3 | _ = none
6 4 | }
7vlib/v/checker/tests/assign_blank_none_err.vv:3:6: error: cannot assign a `none` value to blank `_` identifier
8 1 | fn main() {
9 2 | _ := none
10 3 | _ = none
11 | ~~~~
12 4 | }
13