]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-45730.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-45730.stderr
1 error[E0641]: cannot cast to a pointer of an unknown kind
2   --> $DIR/issue-45730.rs:3:23
3    |
4 LL |     let x: *const _ = 0 as _; //~ ERROR cannot cast
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
11 error[E0641]: cannot cast to a pointer of an unknown kind
12   --> $DIR/issue-45730.rs:5:23
13    |
14 LL |     let x: *const _ = 0 as *const _; //~ ERROR cannot cast
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
21 error[E0641]: cannot cast to a pointer of an unknown kind
22   --> $DIR/issue-45730.rs:8:13
23    |
24 LL |     let x = 0 as *const i32 as *const _ as *mut _; //~ ERROR cannot cast
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
31 error: aborting due to 3 previous errors
32
33 For more information about this error, try `rustc --explain E0641`.