Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
struct_assigned_to_pointer_to_struct.out
7
lines
·
7
sloc
·
230 bytes
·
0c8ce3bcb9fd4a2e5bd5f991a5a07da976d780d7
Raw
1
vlib/v/checker/tests/struct_assigned_to_pointer_to_struct.vv:7:4: error: mismatched types `&Foo` and `Foo`
2
5 | fn main() {
3
6 | mut f := &Foo{10}
4
7 | f = Foo{
5
| ^
6
8 | x: 20
7
9 | }
8