]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/dangling-alloc-id-ice.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / consts / dangling-alloc-id-ice.stderr
CommitLineData
a1dfa0c6 1error: any use of this value will cause an error
0731742a 2 --> $DIR/dangling-alloc-id-ice.rs:8:1
a1dfa0c6 3 |
532ac7d7 4LL | / const FOO: &() = {
a1dfa0c6
XL
5LL | | let y = ();
6LL | | unsafe { Foo { y: &y }.long_live_the_unit }
7LL | | };
ba9703b0 8 | |__^ encountered dangling pointer in final constant
a1dfa0c6 9 |
416331ca 10 = note: `#[deny(const_err)]` on by default
a1dfa0c6
XL
11
12error: aborting due to previous error
13