<!-- Thank you for filing a bug report! 🐛 Please provide a short summary of the bug, along with any information you feel relevant to replicating the bug. --> I tried this code: ```rust const TEST: *mut u8 = 123 as *mut u8; ``` I expected to see this happen: compile without error Instead, this happened: ``` <source>:1:30: error: invalid cast [<integer>] to [* mut u8] 1 | const TEST: *mut u8 = 123 as *mut u8; | ~ ^ ``` ### Meta - What version of Rust GCC were you using, git sha if possible. 74e836599ce80a11b1fe28065ed7aae6ffa3b7e2