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