]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/dangling_raw_ptr.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / dangling_raw_ptr.rs
1 const FOO: *const u32 = { //~ ERROR any use of this value will cause an error
2     let x = 42;
3     &x
4 };
5
6 fn main() {
7     let x = FOO;
8 }