fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0133]: access to union field is unsafe and requires unsafe function or block 2 --> $DIR/access_union_field.rs:13:13 3 | 4LL | let a = foo.bar; 5 | ^^^^^^^ access to union field 6 | 7 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior 8 9error[E0133]: access to union field is unsafe and requires unsafe function or block 10 --> $DIR/access_union_field.rs:14:13 11 | 12LL | let b = foo.baz; 13 | ^^^^^^^ access to union field 14 | 15 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior 16 17error: aborting due to 2 previous errors 18 19For more information about this error, try `rustc --explain E0133`.