77fe9f0a72
validation produces much higher quality errors and already handles most of the cases
27 lines
677 B
Plaintext
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
|
|
|