Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
v2
/
vlib
/
v
/
checker
/
tests
/
struct_field_init_option_ref_err.out
7
lines
·
7
sloc
·
271 bytes
·
51aaf3c49f141d2ba36b335fa1f1576ee6a096bb
Raw
1
vlib/v/checker/tests/struct_field_init_option_ref_err.vv:12:3: error: cannot assign to field `field`: expected a pointer `?&Foo`, but got `?Foo`
2
10 | foo := ?Foo{}
3
11 | _ := Bar{
4
12 | field: foo
5
| ~~~~~~~~~~
6
13 | }
7
14 | }
8