2023-04-23 06:03:09 -05:00
|
|
|
//@run-rustfix
|
2019-10-02 10:38:00 -05:00
|
|
|
pub fn foo(_const: *const f32, _mut: *mut i64) {}
|
|
|
|
|
2017-02-20 21:36:59 -06:00
|
|
|
fn main() {
|
2019-10-02 10:38:00 -05:00
|
|
|
let _ = 0 as *const usize;
|
|
|
|
let _ = 0 as *mut f64;
|
|
|
|
let _: *const u8 = 0 as *const _;
|
|
|
|
|
|
|
|
foo(0 as _, 0 as _);
|
|
|
|
foo(0 as *const _, 0 as *mut _);
|
2017-02-20 21:36:59 -06:00
|
|
|
|
|
|
|
let z = 0;
|
2019-10-02 10:38:00 -05:00
|
|
|
let _ = z as *const usize; // this is currently not caught
|
2017-02-20 21:36:59 -06:00
|
|
|
}
|