fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.2 KiB32 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