aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/checker/tests/union_unsafe_fields.out
blob: be40d1bcc347d55d2ee74adf6ccfc6c4d97a4176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
vlib/v/checker/tests/union_unsafe_fields.vv:10:9: error: reading a union field (or its address) requires `unsafe`
    8 |     mut u := Uf32{u: 3}
    9 |     u.f = 3.3 // ok
   10 |     _ := u.u
      |            ^
   11 |     return &u.f
   12 | }
vlib/v/checker/tests/union_unsafe_fields.vv:11:12: error: reading a union field (or its address) requires `unsafe`
    9 |     u.f = 3.3 // ok
   10 |     _ := u.u
   11 |     return &u.f
      |               ^
   12 | }