fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
717 B19 linesraw
1error[E0133]: access to union field is unsafe and requires unsafe function or block
2  --> $DIR/union.rs:30:20
3   |
4LL |         Foo { bar: _a } => {},
5   |                    ^^ access to union field
6   |
7   = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
8
9error[E0133]: access to union field is unsafe and requires unsafe function or block
10  --> $DIR/union.rs:32:11
11   |
12LL |     match foo {
13   |           ^^^ access to union field
14   |
15   = note: the field may not be properly initialized: using uninitialized data will cause undefined behavior
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0133`.