@@ -7,87 +7,87 @@ LL | *(u.p) = 13;
77 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
88
99error[E0133]: access to union field is unsafe and requires unsafe function or block
10- --> $DIR/union-unsafe.rs:39 :26
10+ --> $DIR/union-unsafe.rs:40 :26
1111 |
1212LL | let _p = &raw const *(u.p);
1313 | ^^^^^ access to union field
1414 |
1515 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
1616
1717error[E0133]: access to union field is unsafe and requires unsafe function or block
18- --> $DIR/union-unsafe.rs:51 :6
18+ --> $DIR/union-unsafe.rs:52 :6
1919 |
2020LL | *u3.a = T::default();
2121 | ^^^^ access to union field
2222 |
2323 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
2424
2525error[E0133]: access to union field is unsafe and requires unsafe function or block
26- --> $DIR/union-unsafe.rs:57 :6
26+ --> $DIR/union-unsafe.rs:58 :6
2727 |
2828LL | *u3.a = T::default();
2929 | ^^^^ access to union field
3030 |
3131 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
3232
3333error[E0133]: access to union field is unsafe and requires unsafe function or block
34- --> $DIR/union-unsafe.rs:65 :13
34+ --> $DIR/union-unsafe.rs:66 :13
3535 |
3636LL | let a = u1.a;
3737 | ^^^^ access to union field
3838 |
3939 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
4040
4141error[E0133]: access to union field is unsafe and requires unsafe function or block
42- --> $DIR/union-unsafe.rs:78 :29
42+ --> $DIR/union-unsafe.rs:81 :29
4343 |
4444LL | let _a = &raw const vec[u4.a];
4545 | ^^^^ access to union field
4646 |
4747 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
4848
4949error[E0133]: access to union field is unsafe and requires unsafe function or block
50- --> $DIR/union-unsafe.rs:80 :14
50+ --> $DIR/union-unsafe.rs:83 :14
5151 |
5252LL | let U1 { a } = u1;
5353 | ^ access to union field
5454 |
5555 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
5656
5757error[E0133]: access to union field is unsafe and requires unsafe function or block
58- --> $DIR/union-unsafe.rs:81 :20
58+ --> $DIR/union-unsafe.rs:84 :20
5959 |
6060LL | if let U1 { a: 12 } = u1 {}
6161 | ^^ access to union field
6262 |
6363 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
6464
6565error[E0133]: access to union field is unsafe and requires unsafe function or block
66- --> $DIR/union-unsafe.rs:82 :25
66+ --> $DIR/union-unsafe.rs:85 :25
6767 |
6868LL | if let Some(U1 { a: 13 }) = Some(u1) {}
6969 | ^^ access to union field
7070 |
7171 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
7272
7373error[E0133]: access to union field is unsafe and requires unsafe function or block
74- --> $DIR/union-unsafe.rs:87 :6
74+ --> $DIR/union-unsafe.rs:90 :6
7575 |
7676LL | *u2.a = String::from("new");
7777 | ^^^^ access to union field
7878 |
7979 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
8080
8181error[E0133]: access to union field is unsafe and requires unsafe function or block
82- --> $DIR/union-unsafe.rs:91 :6
82+ --> $DIR/union-unsafe.rs:94 :6
8383 |
8484LL | *u3.a = 1;
8585 | ^^^^ access to union field
8686 |
8787 = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
8888
8989error[E0133]: access to union field is unsafe and requires unsafe function or block
90- --> $DIR/union-unsafe.rs:95 :6
90+ --> $DIR/union-unsafe.rs:98 :6
9191 |
9292LL | *u3.a = String::from("new");
9393 | ^^^^ access to union field
0 commit comments