mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-18 02:38:28 +00:00
3298de7f66
Closes: #6995 Signed-off-by: Federico Guerinoni <guerinoni.federico@gmail.com> Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
20 lines
328 B
Rust
20 lines
328 B
Rust
// aux-build:macro_rules.rs
|
|
|
|
#![warn(clippy::as_conversions)]
|
|
#![allow(clippy::borrow_as_ptr)]
|
|
|
|
#[macro_use]
|
|
extern crate macro_rules;
|
|
|
|
fn with_external_macro() {
|
|
as_conv_with_arg!(0u32 as u64);
|
|
as_conv!();
|
|
}
|
|
|
|
fn main() {
|
|
let i = 0u32 as u64;
|
|
|
|
let j = &i as *const u64 as *mut u64;
|
|
|
|
with_external_macro();
|
|
}
|