]>
Commit | Line | Data |
---|---|---|
94222f64 | 1 | error[E0133]: access to union field is unsafe and requires unsafe function or block |
064997fb | 2 | --> $DIR/union-assignop.rs:19:5 |
94222f64 XL |
3 | | |
4 | LL | foo.a += 5; | |
5 | | ^^^^^ access to union field | |
6 | | | |
7 | = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior | |
8 | ||
9 | error[E0133]: access to union field is unsafe and requires unsafe function or block | |
064997fb | 10 | --> $DIR/union-assignop.rs:20:6 |
94222f64 | 11 | | |
064997fb FG |
12 | LL | *foo.b += NonCopy; |
13 | | ^^^^^ access to union field | |
94222f64 XL |
14 | | |
15 | = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior | |
16 | ||
064997fb FG |
17 | error[E0133]: access to union field is unsafe and requires unsafe function or block |
18 | --> $DIR/union-assignop.rs:21:6 | |
94222f64 | 19 | | |
064997fb FG |
20 | LL | *foo.b = NonCopy; |
21 | | ^^^^^ access to union field | |
94222f64 | 22 | | |
064997fb | 23 | = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior |
94222f64 XL |
24 | |
25 | error[E0133]: access to union field is unsafe and requires unsafe function or block | |
26 | --> $DIR/union-assignop.rs:23:5 | |
27 | | | |
28 | LL | foo.a; | |
29 | | ^^^^^ access to union field | |
30 | | | |
31 | = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior | |
32 | ||
33 | error[E0133]: access to union field is unsafe and requires unsafe function or block | |
34 | --> $DIR/union-assignop.rs:25:5 | |
35 | | | |
36 | LL | foo.b; | |
37 | | ^^^^^ access to union field | |
38 | | | |
39 | = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior | |
40 | ||
94222f64 XL |
41 | error[E0133]: access to union field is unsafe and requires unsafe function or block |
42 | --> $DIR/union-assignop.rs:27:13 | |
43 | | | |
44 | LL | foo.b = foo.b; | |
45 | | ^^^^^ access to union field | |
46 | | | |
47 | = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior | |
48 | ||
064997fb | 49 | error: aborting due to 6 previous errors |
94222f64 XL |
50 | |
51 | For more information about this error, try `rustc --explain E0133`. |