mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
error[E0641]: cannot cast to a pointer of an unknown kind
|
|
--> $DIR/ambiguous-raw-pointer-cast-errors.rs:5:28
|
|
|
|
|
LL | let x: *const _ = 0 as _;
|
|
| ^ needs more type information
|
|
|
|
|
= note: the type information given here is insufficient to check whether the pointer cast is valid
|
|
|
|
error[E0641]: cannot cast to a pointer of an unknown kind
|
|
--> $DIR/ambiguous-raw-pointer-cast-errors.rs:7:28
|
|
|
|
|
LL | let x: *const _ = 0 as *const _;
|
|
| ^^^^^^^^ needs more type information
|
|
|
|
|
= note: the type information given here is insufficient to check whether the pointer cast is valid
|
|
|
|
error[E0641]: cannot cast to a pointer of an unknown kind
|
|
--> $DIR/ambiguous-raw-pointer-cast-errors.rs:10:44
|
|
|
|
|
LL | let x = 0 as *const i32 as *const _ as *mut _;
|
|
| ^^^^^^ needs more type information
|
|
|
|
|
= note: the type information given here is insufficient to check whether the pointer cast is valid
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0641`.
|