| 1 | vlib/v/checker/tests/assign_immutable_reference_struct_field_err.vv:14:12: error: `parent` is immutable, cannot have a mutable reference to an immutable object |
| 2 | 12 | // taking a reference of `parent` and putting it under a `mut:` struct field |
| 3 | 13 | mut child := Tree{ |
| 4 | 14 | parent: &parent |
| 5 | | ~~~~~~ |
| 6 | 15 | } |
| 7 | 16 | |
| 8 |