blob: 93daae6bc668f6f064acd0838921812e8428d263 [file] [log] [blame] [edit]
#![warn(clippy::as_pointer_underscore)]
#![crate_type = "lib"]
#![no_std]
struct S;
fn f(s: &S) -> usize {
&s as *const &S as usize
//~^ as_pointer_underscore
}
fn g(s: &mut S) -> usize {
s as *mut S as usize
//~^ as_pointer_underscore
}