2023-07-27 13:23:04 +00:00
|
|
|
//@aux-build:proc_macros.rs
|
2020-11-03 00:00:30 +00:00
|
|
|
|
|
|
|
#![warn(clippy::as_conversions)]
|
2023-06-08 18:04:35 +00:00
|
|
|
#![allow(clippy::borrow_as_ptr, unused)]
|
2020-11-03 00:00:30 +00:00
|
|
|
|
2023-03-07 14:40:55 +00:00
|
|
|
extern crate proc_macros;
|
2023-07-03 17:42:48 +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-11-03 00:00:30 +00:00
|
|
|
|
2023-03-07 14:40:55 +00:00
|
|
|
external!(0u32 as u64);
|
2019-11-15 19:27:07 +00:00
|
|
|
}
|
2023-06-08 18:04:35 +00:00
|
|
|
|
|
|
|
with_span!(
|
|
|
|
span
|
|
|
|
|
2024-01-03 00:21:51 +00:00
|
|
|
fn converting() {
|
2023-06-08 18:04:35 +00:00
|
|
|
let x = 0u32 as u64;
|
|
|
|
}
|
|
|
|
);
|