rust/tests/ui/consts/raw-ptr-const.stderr
2023-01-11 09:32:08 +00:00

9 lines
232 B
Plaintext

error: untyped pointers are not allowed in constant
--> $DIR/raw-ptr-const.rs:5:1
|
LL | const CONST_RAW: *const Vec<i32> = &Vec::new() as *const _;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error