rust/tests/ui/consts/const-eval/heap/alloc_intrinsic_nontransient_fail.stderr

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

11 lines
279 B
Plaintext
Raw Normal View History

error: unsupported untyped pointer in constant
--> $DIR/alloc_intrinsic_nontransient_fail.rs:6:1
|
LL | const FOO: *const i32 = foo();
2022-02-13 09:27:59 -06:00
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: memory only reachable via raw pointers is not supported
error: aborting due to previous error