]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-eval/ub-upvars.64bit.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / ub-upvars.64bit.stderr
CommitLineData
a1dfa0c6 1error[E0080]: it is undefined behavior to use this value
cdc7bbd5 2 --> $DIR/ub-upvars.rs:6:1
0bf4aa26 3 |
064997fb
FG
4LL | const BAD_UPVAR: &dyn FnOnce() = &{
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .<deref>.<dyn-downcast>.<captured-var(bad_ref)>: encountered a null reference
0bf4aa26 6 |
e1599b0c 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.
cdc7bbd5 8 = note: the raw bytes of the constant (size: 16, align: 8) {
064997fb 9 ╾───────alloc3────────╼ ╾───────alloc4────────╼ │ ╾──────╼╾──────╼
cdc7bbd5 10 }
0bf4aa26
XL
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0080`.