]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-45730.stderr
New upstream version 1.60.0+dfsg1
[rustc.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:28
3 |
4 LL | let x: *const _ = 0 as _;
5 | ^ needs more type information
6 |
7 = note: the type information given here is insufficient to check whether the pointer cast is valid
8
9 error[E0641]: cannot cast to a pointer of an unknown kind
10 --> $DIR/issue-45730.rs:5:28
11 |
12 LL | let x: *const _ = 0 as *const _;
13 | ^^^^^^^^ needs more type information
14 |
15 = note: the type information given here is insufficient to check whether the pointer cast is valid
16
17 error[E0641]: cannot cast to a pointer of an unknown kind
18 --> $DIR/issue-45730.rs:8:44
19 |
20 LL | let x = 0 as *const i32 as *const _ as *mut _;
21 | ^^^^^^ needs more type information
22 |
23 = note: the type information given here is insufficient to check whether the pointer cast is valid
24
25 error: aborting due to 3 previous errors
26
27 For more information about this error, try `rustc --explain E0641`.