rust-clippy/tests/ui/crashes/auxiliary/ice-8681-aux.rs

7 lines
115 B
Rust
Raw Normal View History

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