]>
Commit | Line | Data |
---|---|---|
136023e0 XL |
1 | error[E0133]: access to union field is unsafe and requires unsafe function or block |
2 | --> $DIR/issue-47412.rs:14:11 | |
3 | | | |
4 | LL | match u.void {} | |
5 | | ^^^^^^ access to union field | |
6 | | | |
7 | = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior | |
8 | ||
f035d41b | 9 | error[E0133]: dereference of raw pointer is unsafe and requires unsafe function or block |
136023e0 | 10 | --> $DIR/issue-47412.rs:20:11 |
f9f354fc | 11 | | |
17df50a5 XL |
12 | LL | match *ptr {} |
13 | | ^^^^ dereference of raw pointer | |
f9f354fc | 14 | | |
17df50a5 | 15 | = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior |
f9f354fc | 16 | |
136023e0 | 17 | error: aborting due to 2 previous errors |
f9f354fc XL |
18 | |
19 | For more information about this error, try `rustc --explain E0133`. |