vxx2 / vlib / v / checker / tests / infix_value_ref_comparison_err.out
14 lines · 14 sloc · 627 bytes · 1f5df6f827d46728321ed9fec3fe7d53c7b9df04
Raw
1vlib/v/checker/tests/infix_value_ref_comparison_err.vv:6:6: error: infix expr: cannot use `&int` (right expression) as `int` (you can use it inside an `unsafe` block)
2 4 | value := 1
3 5 | reference := &value
4 6 | _ = value == reference
5 | ~~~~~~~~~~~~~~~~~~
6 7 | }
7 8 |
8vlib/v/checker/tests/infix_value_ref_comparison_err.vv:14:8: error: infix expr: cannot use `&int` (right expression) as `int` (you can use it inside an `unsafe` block)
9 12 | match a {
10 13 | int {
11 14 | _ = a == &b
12 | ~~~~~~
13 15 | }
14 16 | else {}
15