fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.3 KiB33 linesraw
1error[E0641]: cannot cast to a pointer of an unknown kind
2  --> $DIR/issue-45730.rs:3:23
3   |
4LL |     let x: *const _ = 0 as _;
5   |                       ^^^^^-
6   |                            |
7   |                            help: consider giving more type information
8   |
9   = note: the type information given here is insufficient to check whether the pointer cast is valid
10
11error[E0641]: cannot cast to a pointer of an unknown kind
12  --> $DIR/issue-45730.rs:5:23
13   |
14LL |     let x: *const _ = 0 as *const _;
15   |                       ^^^^^--------
16   |                            |
17   |                            help: consider giving more type information
18   |
19   = note: the type information given here is insufficient to check whether the pointer cast is valid
20
21error[E0641]: cannot cast to a pointer of an unknown kind
22  --> $DIR/issue-45730.rs:8:13
23   |
24LL |     let x = 0 as *const i32 as *const _ as *mut _;
25   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------
26   |                                            |
27   |                                            help: consider giving more type information
28   |
29   = note: the type information given here is insufficient to check whether the pointer cast is valid
30
31error: aborting due to 3 previous errors
32
33For more information about this error, try `rustc --explain E0641`.