]>
Commit | Line | Data |
---|---|---|
a1dfa0c6 | 1 | error[E0080]: it is undefined behavior to use this value |
e1599b0c | 2 | --> $DIR/union-ice.rs:14:1 |
8faf50e0 | 3 | | |
532ac7d7 | 4 | LL | const FIELD3: Field3 = unsafe { UNION.field3 }; |
064997fb | 5 | | ^^^^^^^^^^^^^^^^^^^^ constructing invalid value: encountered uninitialized bytes, but expected initialized bytes |
8faf50e0 | 6 | | |
e1599b0c | 7 | = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior. |
cdc7bbd5 XL |
8 | = note: the raw bytes of the constant (size: 8, align: 8) { |
9 | __ __ __ __ __ __ __ __ │ ░░░░░░░░ | |
10 | } | |
8faf50e0 | 11 | |
a1dfa0c6 | 12 | error[E0080]: it is undefined behavior to use this value |
e1599b0c | 13 | --> $DIR/union-ice.rs:16:1 |
8faf50e0 | 14 | | |
064997fb FG |
15 | LL | const FIELD_PATH: Struct = Struct { |
16 | | ^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .b: encountered uninitialized bytes, but expected initialized bytes | |
4462d4a0 | 17 | | |
e1599b0c | 18 | = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior. |
cdc7bbd5 XL |
19 | = note: the raw bytes of the constant (size: 16, align: 8) { |
20 | __ __ __ __ __ __ __ __ 2a __ __ __ __ __ __ __ │ ░░░░░░░░*░░░░░░░ | |
21 | } | |
8faf50e0 | 22 | |
a1dfa0c6 | 23 | error[E0080]: it is undefined behavior to use this value |
e1599b0c | 24 | --> $DIR/union-ice.rs:26:1 |
8faf50e0 | 25 | | |
064997fb FG |
26 | LL | const FIELD_PATH2: Struct2 = Struct2 { |
27 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .b[1]: encountered uninitialized bytes | |
8faf50e0 | 28 | | |
e1599b0c | 29 | = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior. |
cdc7bbd5 XL |
30 | = note: the raw bytes of the constant (size: 40, align: 8) { |
31 | 0x00 │ 15 00 00 00 00 00 00 00 __ __ __ __ __ __ __ __ │ ........░░░░░░░░ | |
32 | 0x10 │ 17 00 00 00 00 00 00 00 18 00 00 00 00 00 00 00 │ ................ | |
33 | 0x20 │ 2a __ __ __ __ __ __ __ │ *░░░░░░░ | |
34 | } | |
8faf50e0 XL |
35 | |
36 | error: aborting due to 3 previous errors | |
37 | ||
38 | For more information about this error, try `rustc --explain E0080`. |