]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-eval/validate_uninhabited_zsts.32bit.stderr
Shorten def_span for more items.
[rust.git] / src / test / ui / consts / const-eval / validate_uninhabited_zsts.32bit.stderr
index 22afc9779e859ab9fc2daf6d7496a02490455a29..bdaeb4a0fbee0b5d48a2be5d0fcb367f822de35c 100644 (file)
@@ -26,7 +26,7 @@ error[E0080]: it is undefined behavior to use this value
   --> $DIR/validate_uninhabited_zsts.rs:23:1
    |
 LL | const BAR: [empty::Empty; 3] = [unsafe { std::mem::transmute(()) }; 3];
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at [0].0: encountered a value of uninhabited type empty::Void
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at [0].0: encountered a value of uninhabited type empty::Void
    |
    = 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.
    = note: the raw bytes of the constant (size: 0, align: 1) {}