]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-err4.64bit.stderr
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / const-err4.64bit.stderr
1 error[E0080]: it is undefined behavior to use this value
2   --> $DIR/const-err4.rs:9:11
3    |
4 LL |     Boo = [unsafe { Foo { b: () }.a }; 4][3],
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    = note: the raw bytes of the constant (size: 8, align: 8) {
9                __ __ __ __ __ __ __ __                         │ ░░░░░░░░
10            }
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0080`.