fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0080]: it is undefined behavior to use this value 2 --> $DIR/validate_never_arrays.rs:6:1 3 | 4LL | const _: &[!; 1] = unsafe { &*(1_usize as *const [!; 1]) }; 5 | ^^^^^^^^^^^^^^^^ constructing invalid value: encountered a reference pointing to uninhabited type [!; 1] 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: $SIZE, align: $ALIGN) { 9 HEX_DUMP 10 } 11 12error[E0080]: it is undefined behavior to use this value 13 --> $DIR/validate_never_arrays.rs:9:1 14 | 15LL | const _: &[!] = unsafe { &*(1_usize as *const [!; 1]) }; 16 | ^^^^^^^^^^^^^ constructing invalid value at .<deref>[0]: encountered a value of the never type `!` 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: $SIZE, align: $ALIGN) { 20 HEX_DUMP 21 } 22 23error[E0080]: it is undefined behavior to use this value 24 --> $DIR/validate_never_arrays.rs:10:1 25 | 26LL | const _: &[!] = unsafe { &*(1_usize as *const [!; 42]) }; 27 | ^^^^^^^^^^^^^ constructing invalid value at .<deref>[0]: encountered a value of the never type `!` 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: $SIZE, align: $ALIGN) { 31 HEX_DUMP 32 } 33 34error: aborting due to 3 previous errors 35 36For more information about this error, try `rustc --explain E0080`.