Skip to content

Commit 9ccf35d

Browse files
committed
blessed test
1 parent fc03435 commit 9ccf35d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/ui/union/union-unsafe.stderr

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

99
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
1111
|
1212
LL | 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

1717
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
1919
|
2020
LL | *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

2525
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
2727
|
2828
LL | *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

3333
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
3535
|
3636
LL | 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

4141
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
4343
|
4444
LL | 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

4949
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
5151
|
5252
LL | 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

5757
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
5959
|
6060
LL | 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

6565
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
6767
|
6868
LL | 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

7373
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
7575
|
7676
LL | *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

8181
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
8383
|
8484
LL | *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

8989
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
9191
|
9292
LL | *u3.a = String::from("new");
9393
| ^^^^ access to union field

0 commit comments

Comments
 (0)