1 error[E0133]: access to union field is unsafe and requires unsafe function or block
2 --> $DIR/union-assignop.rs:20:5
5 | ^^^^^^^^^^ access to union field
7 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
9 error[E0133]: access to union field is unsafe and requires unsafe function or block
10 --> $DIR/union-assignop.rs:21:5
12 LL | foo.b += Dropping;
13 | ^^^^^ access to union field
15 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
17 error[E0133]: assignment to union field that might need dropping is unsafe and requires unsafe function or block
18 --> $DIR/union-assignop.rs:22:5
20 LL | foo.b = Dropping;
21 | ^^^^^^^^^^^^^^^^ assignment to union field that might need dropping
23 = note: the previous content of the field will be dropped, which causes undefined behavior if the field was not properly initialized
25 error[E0133]: access to union field is unsafe and requires unsafe function or block
26 --> $DIR/union-assignop.rs:23:5
29 | ^^^^^ access to union field
31 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
33 error[E0133]: access to union field is unsafe and requires unsafe function or block
34 --> $DIR/union-assignop.rs:25:5
37 | ^^^^^ access to union field
39 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
41 error[E0133]: access to union field is unsafe and requires unsafe function or block
42 --> $DIR/union-assignop.rs:27:13
45 | ^^^^^ access to union field
47 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
49 error[E0133]: assignment to union field that might need dropping is unsafe and requires unsafe function or block
50 --> $DIR/union-assignop.rs:27:5
53 | ^^^^^^^^^^^^^ assignment to union field that might need dropping
55 = note: the previous content of the field will be dropped, which causes undefined behavior if the field was not properly initialized
57 error: aborting due to 7 previous errors
59 For more information about this error, try `rustc --explain E0133`.