2020-11-02 18:00:30 -06:00
|
|
|
// aux-build:macro_rules.rs
|
|
|
|
|
|
|
|
#![warn(clippy::as_conversions)]
|
2022-01-02 07:26:44 -06:00
|
|
|
#![allow(clippy::borrow_as_ptr)]
|
2020-11-02 18:00:30 -06:00
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate macro_rules;
|
|
|
|
|
|
|
|
fn with_external_macro() {
|
|
|
|
as_conv_with_arg!(0u32 as u64);
|
|
|
|
as_conv!();
|
|
|
|
}
|
2019-11-15 13:27:07 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let i = 0u32 as u64;
|
|
|
|
|
|
|
|
let j = &i as *const u64 as *mut u64;
|
2020-11-02 18:00:30 -06:00
|
|
|
|
|
|
|
with_external_macro();
|
2019-11-15 13:27:07 -06:00
|
|
|
}
|