rust/tests/ui/consts/dangling_raw_ptr.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
677 B
Plaintext
Raw Normal View History

error: encountered dangling pointer in final value of constant
--> $DIR/dangling_raw_ptr.rs:1:1
|
2022-02-13 15:27:59 +00:00
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