2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2024-12-25 20:43:18 +00:00
rust-clippy/tests/ui/as_conversions.rs
Mikhail Babenko 9ec8888b91 implemented as_conversions lint
actuall add files

add better example and change pedantic to restriction
2019-11-25 18:12:52 +03:00

7 lines
115 B
Rust

#[warn(clippy::as_conversions)]
fn main() {
let i = 0u32 as u64;
let j = &i as *const u64 as *mut u64;
}