1 error: any use of this value will cause an error
2 --> $DIR/dangling-alloc-id-ice.rs:8:1
4 LL | / const FOO: &() = {
6 LL | | unsafe { Foo { y: &y }.long_live_the_unit }
8 | |__^ type validation failed: encountered dangling pointer in final constant
10 = note: `#[deny(const_err)]` on by default
12 error: aborting due to previous error