blob: 24f57449872250a4434d1558b0eb214611030ae6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
error: encountered dangling pointer in final constant
--> $DIR/dangling-alloc-id-ice.rs:9:1
|
LL | / const FOO: &() = {
LL | |
LL | | let y = ();
LL | | unsafe { Foo { y: &y }.long_live_the_unit }
LL | | };
| |__^
error: aborting due to previous error
|