mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
11 lines
299 B
Plaintext
11 lines
299 B
Plaintext
error: unsupported untyped pointer in constant
|
|
--> $DIR/raw-ptr-const.rs:5:1
|
|
|
|
|
LL | const CONST_RAW: *const Vec<i32> = &Vec::new() as *const _;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: memory only reachable via raw pointers is not supported
|
|
|
|
error: aborting due to previous error
|
|
|