blob: fe83023aaeb79f89d9adc517077a4957b0b79e49 [file]
//@check-pass
#![forbid(clippy::ptr_as_ptr)]
/// MSRV checking in late passes skips checking the parent nodes if no early pass sees a
/// `#[clippy::msrv]` attribute
///
/// Here we ensure that even if all early passes are allowed (above) the attribute is still detected
/// in late lints such as `clippy::ptr_as_ptr`
#[clippy::msrv = "1.37"]
fn f(p: *const i32) {
let _ = p as *const i64;
}