fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0080]: it is undefined behavior to use this value 2 --> $DIR/union-ice.rs:14:1 3 | 4LL | const FIELD3: Field3 = unsafe { UNION.field3 }; 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered uninitialized bytes, but expected initialized plain (non-pointer) bytes 6 | 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. 8 9error[E0080]: it is undefined behavior to use this value 10 --> $DIR/union-ice.rs:16:1 11 | 12LL | / const FIELD_PATH: Struct = Struct { 13LL | | a: 42, 14LL | | b: unsafe { UNION.field3 }, 15LL | | }; 16 | |__^ type validation failed: encountered uninitialized bytes at .b, but expected initialized plain (non-pointer) bytes 17 | 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. 19 20error[E0080]: it is undefined behavior to use this value 21 --> $DIR/union-ice.rs:26:1 22 | 23LL | / const FIELD_PATH2: Struct2 = Struct2 { 24LL | | b: [ 25LL | | 21, 26LL | | unsafe { UNION.field3 }, 27... | 28LL | | a: 42, 29LL | | }; 30 | |__^ type validation failed: encountered undefined bytes at .b[1] 31 | 32 = 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. 33 34error: aborting due to 3 previous errors 35 36For more information about this error, try `rustc --explain E0080`.