2023-08-24 19:32:12 +00:00
|
|
|
//@aux-build:proc_macros.rs
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
#![warn(clippy::as_conversions)]
|
2023-07-02 12:35:19 +00:00
|
|
|
#![allow(clippy::borrow_as_ptr, unused)]
|
2020-12-06 14:01:03 +00:00
|
|
|
|
2023-03-24 13:04:35 +00:00
|
|
|
extern crate proc_macros;
|
2023-07-17 08:19:29 +00:00
|
|
|
use proc_macros::{external, with_span};
|
2019-11-15 19:27:07 +00:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let i = 0u32 as u64;
|
|
|
|
|
|
|
|
let j = &i as *const u64 as *mut u64;
|
2020-12-06 14:01:03 +00:00
|
|
|
|
2023-03-24 13:04:35 +00:00
|
|
|
external!(0u32 as u64);
|
2019-11-15 19:27:07 +00:00
|
|
|
}
|
2023-07-02 12:35:19 +00:00
|
|
|
|
|
|
|
with_span!(
|
|
|
|
span
|
|
|
|
|
|
|
|
fn coverting() {
|
|
|
|
let x = 0u32 as u64;
|
|
|
|
}
|
|
|
|
);
|