mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
15 lines
261 B
Rust
15 lines
261 B
Rust
// aux-build:proc_macros.rs
|
|
|
|
#![warn(clippy::as_conversions)]
|
|
#![allow(clippy::borrow_as_ptr)]
|
|
|
|
extern crate proc_macros;
|
|
use proc_macros::external;
|
|
|
|
fn main() {
|
|
let i = 0u32 as u64;
|
|
|
|
let j = &i as *const u64 as *mut u64;
|
|
|
|
external!(0u32 as u64);
|
|
}
|