rust/tests/ui/consts/dangling_raw_ptr.stderr
Oli Scherer 77fe9f0a72 Validate before reporting interning errors.
validation produces much higher quality errors and already handles most of the cases
2024-04-17 09:50:44 +00:00

27 lines
677 B
Plaintext

error: encountered dangling pointer in final value of constant
--> $DIR/dangling_raw_ptr.rs:1:1
|
LL | const FOO: *const u32 = {
| ^^^^^^^^^^^^^^^^^^^^^
error: encountered dangling pointer in final value of constant
--> $DIR/dangling_raw_ptr.rs:11:1
|
LL | const BAR: Union = {
| ^^^^^^^^^^^^^^^^
error: encountered dangling pointer in final value of constant
--> $DIR/dangling_raw_ptr.rs:17:1
|
LL | const BAZ: Union = {
| ^^^^^^^^^^^^^^^^
error: encountered dangling pointer in final value of constant
--> $DIR/dangling_raw_ptr.rs:23:1
|
LL | const FOOMP: *const u32 = {
| ^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 4 previous errors