summary refs log tree commit diff
path: root/src/test/ui/consts/dangling_raw_ptr.stderr
blob: a79ac62d5cdbdcce13ea7947f244036b8ab13317 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: encountered dangling pointer in final constant
  --> $DIR/dangling_raw_ptr.rs:1:1
   |
LL | / const FOO: *const u32 = {
LL | |     let x = 42;
LL | |     &x
LL | | };
   | |__^

error: aborting due to previous error