mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
301 B
Plaintext
11 lines
301 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 1 previous error
|
|
|