rust/src/test/ui/consts/dangling_raw_ptr.stderr

14 lines
317 B
Plaintext
Raw Normal View History

error: any use of this value will cause an error
--> $DIR/dangling_raw_ptr.rs:1:1
|
2019-03-09 06:03:44 -06:00
LL | / const FOO: *const u32 = {
LL | | let x = 42;
LL | | &x
LL | | };
2020-03-08 13:44:09 -05:00
| |__^ encountered dangling pointer in final constant
|
= note: `#[deny(const_err)]` on by default
error: aborting due to previous error