rust/src/test/ui/consts/dangling-alloc-id-ice.stderr

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

13 lines
270 B
Plaintext
Raw Normal View History

error: encountered dangling pointer in final constant
--> $DIR/dangling-alloc-id-ice.rs:9:1
|
2019-03-09 15:03:44 +03:00
LL | / const FOO: &() = {
LL | |
LL | | let y = ();
LL | | unsafe { Foo { y: &y }.long_live_the_unit }
LL | | };
| |__^
2020-11-05 13:24:21 +05:30
error: aborting due to previous error