rust/tests/ui/consts/raw-ptr-const.stderr

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

11 lines
299 B
Plaintext
Raw Normal View History

error: unsupported untyped pointer in constant
2022-09-21 13:05:20 +02:00
--> $DIR/raw-ptr-const.rs:5:1
|
LL | const CONST_RAW: *const Vec<i32> = &Vec::new() as *const _;
2022-02-13 16:27:59 +01:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: memory only reachable via raw pointers is not supported
error: aborting due to previous error