1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Files
v/vlib/v/checker/tests/ptr_array_init.out
2022-07-14 00:58:14 +03:00

13 lines
568 B
Plaintext

vlib/v/checker/tests/ptr_array_init.vv:2:11: warning: arrays of references need to be initialized right away, therefore `len:` cannot be used (unless inside `unsafe`)
1 | fn main() {
2 | println(*[]&int{len: 1}[0])
| ~~~~~~~
3 | println([1]&int{})
4 | }
vlib/v/checker/tests/ptr_array_init.vv:3:10: warning: fixed arrays of references need to be initialized right away (unless inside `unsafe`)
1 | fn main() {
2 | println(*[]&int{len: 1}[0])
3 | println([1]&int{})
| ~~~~~~~~~
4 | }