fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0080]: it is undefined behavior to use this value 2 --> $DIR/ub-int-array.rs:18:1 3 | 4LL | const UNINIT_INT_0: [u32; 3] = unsafe { 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at [0]: encountered uninitialized memory, but expected an integer 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 = note: the raw bytes of the constant (size: 12, align: 4) { 9 __ __ __ __ 11 11 11 11 22 22 22 22 │ ░░░░...."""" 10 } 11 12error[E0080]: it is undefined behavior to use this value 13 --> $DIR/ub-int-array.rs:28:1 14 | 15LL | const UNINIT_INT_1: [u32; 3] = unsafe { 16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at [1]: encountered uninitialized memory, but expected an integer 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 = note: the raw bytes of the constant (size: 12, align: 4) { 20 00 00 00 00 01 __ 01 01 02 02 __ 02 │ .....░....░. 21 } 22 23error[E0080]: it is undefined behavior to use this value 24 --> $DIR/ub-int-array.rs:46:1 25 | 26LL | const UNINIT_INT_2: [u32; 3] = unsafe { 27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at [2]: encountered uninitialized memory, but expected an integer 28 | 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. 30 = note: the raw bytes of the constant (size: 12, align: 4) { 31 00 00 00 00 01 01 01 01 02 02 02 __ │ ...........░ 32 } 33 34error: aborting due to 3 previous errors 35 36For more information about this error, try `rustc --explain E0080`.