]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | error[E0133]: access to union field is unsafe and requires unsafe function or block |
2 | --> $DIR/union.rs:30:20 | |
136023e0 | 3 | | |
5e7ed085 FG |
4 | LL | Foo { bar: _a } => {}, |
5 | | ^^ access to union field | |
136023e0 | 6 | | |
5e7ed085 | 7 | = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior |
136023e0 | 8 | |
5e7ed085 FG |
9 | error[E0133]: access to union field is unsafe and requires unsafe function or block |
10 | --> $DIR/union.rs:32:11 | |
136023e0 | 11 | | |
5e7ed085 FG |
12 | LL | match foo { |
13 | | ^^^ access to union field | |
14 | | | |
15 | = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior | |
136023e0 | 16 | |
5e7ed085 | 17 | error: aborting due to 2 previous errors |
136023e0 | 18 | |
5e7ed085 | 19 | For more information about this error, try `rustc --explain E0133`. |