]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-cast-different-types.stderr
Rollup merge of #106699 - eholk:await-chains-drop-tracking, r=wesleywiser
[rust.git] / tests / 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:22
3    |
4 LL | const 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:22
9    |
10 LL | const 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`.