]>
Commit | Line | Data |
---|---|---|
a1dfa0c6 | 1 | error: any use of this value will cause an error |
0731742a | 2 | --> $DIR/dangling-alloc-id-ice.rs:8:1 |
a1dfa0c6 | 3 | | |
532ac7d7 | 4 | LL | / const FOO: &() = { |
a1dfa0c6 XL |
5 | LL | | let y = (); |
6 | LL | | unsafe { Foo { y: &y }.long_live_the_unit } | |
7 | LL | | }; | |
ba9703b0 | 8 | | |__^ encountered dangling pointer in final constant |
a1dfa0c6 | 9 | | |
416331ca | 10 | = note: `#[deny(const_err)]` on by default |
a1dfa0c6 XL |
11 | |
12 | error: aborting due to previous error | |
13 |