1 error[E0641]: cannot cast to a pointer of an unknown kind
2 --> $DIR/issue-45730.rs:3:28
4 LL | let x: *const _ = 0 as _;
5 | ^ needs more type information
7 = note: the type information given here is insufficient to check whether the pointer cast is valid
9 error[E0641]: cannot cast to a pointer of an unknown kind
10 --> $DIR/issue-45730.rs:5:28
12 LL | let x: *const _ = 0 as *const _;
13 | ^^^^^^^^ needs more type information
15 = note: the type information given here is insufficient to check whether the pointer cast is valid
17 error[E0641]: cannot cast to a pointer of an unknown kind
18 --> $DIR/issue-45730.rs:8:44
20 LL | let x = 0 as *const i32 as *const _ as *mut _;
21 | ^^^^^^ needs more type information
23 = note: the type information given here is insufficient to check whether the pointer cast is valid
25 error: aborting due to 3 previous errors
27 For more information about this error, try `rustc --explain E0641`.