@@ -7,87 +7,87 @@ LL | *(u.p) = 13;
7
7
= note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
8
8
9
9
error[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
11
11
|
12
12
LL | let _p = &raw const *(u.p);
13
13
| ^^^^^ access to union field
14
14
|
15
15
= note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
16
16
17
17
error[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
19
19
|
20
20
LL | *u3.a = T::default();
21
21
| ^^^^ access to union field
22
22
|
23
23
= note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
24
24
25
25
error[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
27
27
|
28
28
LL | *u3.a = T::default();
29
29
| ^^^^ access to union field
30
30
|
31
31
= note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
32
32
33
33
error[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
35
35
|
36
36
LL | let a = u1.a;
37
37
| ^^^^ access to union field
38
38
|
39
39
= note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
40
40
41
41
error[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
43
43
|
44
44
LL | let _a = &raw const vec[u4.a];
45
45
| ^^^^ access to union field
46
46
|
47
47
= note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
48
48
49
49
error[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
51
51
|
52
52
LL | let U1 { a } = u1;
53
53
| ^ access to union field
54
54
|
55
55
= note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
56
56
57
57
error[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
59
59
|
60
60
LL | if let U1 { a: 12 } = u1 {}
61
61
| ^^ access to union field
62
62
|
63
63
= note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
64
64
65
65
error[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
67
67
|
68
68
LL | if let Some(U1 { a: 13 }) = Some(u1) {}
69
69
| ^^ access to union field
70
70
|
71
71
= note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
72
72
73
73
error[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
75
75
|
76
76
LL | *u2.a = String::from("new");
77
77
| ^^^^ access to union field
78
78
|
79
79
= note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
80
80
81
81
error[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
83
83
|
84
84
LL | *u3.a = 1;
85
85
| ^^^^ access to union field
86
86
|
87
87
= note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
88
88
89
89
error[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
91
91
|
92
92
LL | *u3.a = String::from("new");
93
93
| ^^^^ access to union field
0 commit comments