rust/tests/ui/crashes/auxiliary/ice-8681-aux.rs
2022-04-11 13:18:27 -04:00

7 lines
115 B
Rust

pub fn foo(x: &u32) -> u32 {
/* Safety:
* This is totally ok.
*/
unsafe { *(x as *const u32) }
}