2023-04-20 10:19:36 -05:00
|
|
|
//@aux-build:proc_macros.rs:proc-macro
|
2020-11-02 18:00:30 -06:00
|
|
|
|
|
|
|
#![warn(clippy::as_conversions)]
|
2023-06-08 13:04:35 -05:00
|
|
|
#![allow(clippy::borrow_as_ptr, unused)]
|
2020-11-02 18:00:30 -06:00
|
|
|
|
2023-03-07 08:40:55 -06:00
|
|
|
extern crate proc_macros;
|
|
|
|
use proc_macros::external;
|
2023-06-08 13:04:35 -05:00
|
|
|
use proc_macros::with_span;
|
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
|
|
|
|
2023-03-07 08:40:55 -06:00
|
|
|
external!(0u32 as u64);
|
2019-11-15 13:27:07 -06:00
|
|
|
}
|
2023-06-08 13:04:35 -05:00
|
|
|
|
|
|
|
with_span!(
|
|
|
|
span
|
|
|
|
|
|
|
|
fn coverting() {
|
|
|
|
let x = 0u32 as u64;
|
|
|
|
}
|
|
|
|
);
|