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/union.rs:30:20 3 | 4LL | Foo { bar: _a } => {}, 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/union.rs:34:20 11 | 12LL | pizza: Pizza { 13 | ____________________^ 14LL | | topping: Some(PizzaTopping::Cheese) | Some(PizzaTopping::Pineapple) | None 15LL | | } 16 | |_____________^ access to union field 17 | 18 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior 19 20error[E0133]: access to union field is unsafe and requires unsafe function or block 21 --> $DIR/union.rs:42:20 22 | 23LL | Foo { zst: () } => {}, 24 | ^^ access to union field 25 | 26 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior 27 28error[E0133]: access to union field is unsafe and requires unsafe function or block 29 --> $DIR/union.rs:45:22 30 | 31LL | Foo { pizza: Pizza { .. } } => {}, 32 | ^^^^^^^^^^^^ access to union field 33 | 34 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior 35 36error: aborting due to 4 previous errors 37 38For more information about this error, try `rustc --explain E0133`.