]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-cast-different-types.rs
Rollup merge of #107004 - compiler-errors:new-solver-new-candidates-2, r=lcnr
[rust.git] / tests / ui / consts / const-cast-different-types.rs
1 const a: &str = "foo";
2 const b: *const u8 = a as *const u8; //~ ERROR casting
3 const c: *const u8 = &a as *const u8; //~ ERROR casting
4
5 fn main() {
6 }