]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-79690.stderr
Check that value is explicitly none
[rust.git] / src / test / ui / consts / issue-79690.stderr
1 error[E0080]: it is undefined behavior to use this value
2   --> $DIR/issue-79690.rs:29:1
3    |
4 LL | const G: Fat = unsafe { Transmute { t: FOO }.u };
5    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered read of part of a pointer at .1.<deref>.size.foo
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
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0080`.