2019-03-07 07:07:01 -06:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(clippy::zero_ptr)]
|
|
|
|
#![allow(clippy::transmute_ptr_to_ref)]
|
2024-02-19 07:53:53 -06:00
|
|
|
#![allow(clippy::transmuting_null, clippy::missing_transmute_annotations)]
|
2019-03-07 07:07:01 -06:00
|
|
|
|
|
|
|
pub const ZPTR: *const usize = 0 as *const _;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
unsafe {
|
|
|
|
#[clippy::author]
|
|
|
|
let _: &i32 = std::mem::transmute(ZPTR);
|
|
|
|
let _: &i32 = std::mem::transmute(0 as *const i32);
|
|
|
|
}
|
|
|
|
}
|