vxx2 / vlib / v / checker / tests / invalid_recursive_struct_err.out
6 lines · 6 sloc · 226 bytes · 38ff6472504764a80058f15f3da00bccc2a534cb
Raw
1vlib/v/checker/tests/invalid_recursive_struct_err.vv:3:2: error: recursive struct is only possible with optional pointer (e.g. ?&Node)
2 1 | struct Node {
3 2 | mut:
4 3 | next ?Node
5 | ~~~~~~~~~~
6 4 | }
7