]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/dangling-alloc-id-ice.stderr
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / dangling-alloc-id-ice.stderr
1 error: encountered dangling pointer in final constant
2   --> $DIR/dangling-alloc-id-ice.rs:9:1
3    |
4 LL | / const FOO: &() = {
5 LL | |
6 LL | |     let y = ();
7 LL | |     unsafe { Foo { y: &y }.long_live_the_unit }
8 LL | | };
9    | |__^
10
11 error: aborting due to previous error
12