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