Gitly
English
Русский
Español
日本語
中文
Português
Pricing
Log in
Register
vxx2
/
vlib
/
v
/
checker
/
tests
/
struct_ref_fields_init_0_err.vv
15
lines
·
13
sloc
·
130 bytes
·
cb595293d51f8f56a58e2abe313bd7ad81085292
Raw
1
struct Foo {
2
foo &u8
3
}
4
5
fn main() {
6
_ = Foo{0}
7
_ = Foo{
8
foo: 0
9
}
10
11
_ = Foo{unsafe { 0 }}
12
_ = Foo{
13
foo: unsafe { 0 }
14
}
15
}
16