]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/dangling_raw_ptr.stderr
Rollup merge of #70112 - Centril:rollup-gpi5tbq, r=Centril
[rust.git] / src / test / ui / consts / dangling_raw_ptr.stderr
1 error: any use of this value will cause an error
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    | |__^ encountered dangling pointer in final constant
9    |
10    = note: `#[deny(const_err)]` on by default
11
12 error: aborting due to previous error
13