Auto merge of #33457 - oli-obk:const_err/cast_u8_ptr, r=eddyb
casting `&[u8]` to `* const u8` doesn't work in const_eval fixes #33452 r? @eddyb cc @Ms2ger
This commit is contained in:
commit
faca79fc33
2 changed files with 7 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#![deny(const_err)]
|
||||
|
||||
const X: *const u8 = b"" as _;
|
||||
|
||||
fn main() {
|
||||
let _ = ((-1 as i8) << 8 - 1) as f32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue