| 1 | vlib/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 | |
| 8 | vlib/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 |