rust/tests/ui/consts/const-eval/ub-enum-overwrite.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
325 B
Plaintext
Raw Permalink Normal View History

error[E0080]: using uninitialized data, but this operation requires initialized memory
2024-08-17 12:19:34 +00:00
--> $DIR/ub-enum-overwrite.rs:11:14
|
LL | unsafe { *p }
| ^^ evaluation of constant value failed here
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0080`.