]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-cast-different-types.stderr
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-cast-different-types.stderr
1 error[E0606]: casting `&'static str` as `*const u8` is invalid
2   --> $DIR/const-cast-different-types.rs:2:23
3    |
4 LL | static b: *const u8 = a as *const u8;
5    |                       ^^^^^^^^^^^^^^
6
7 error[E0606]: casting `&&'static str` as `*const u8` is invalid
8   --> $DIR/const-cast-different-types.rs:3:23
9    |
10 LL | static c: *const u8 = &a as *const u8;
11    |                       ^^^^^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0606`.