2023-04-23 06:03:09 -05:00
|
|
|
//@aux-build:proc_macros.rs
|
2020-12-06 08:01:03 -06:00
|
|
|
|
|
|
|
#![warn(clippy::as_conversions)]
|
2022-01-13 06:18:19 -06:00
|
|
|
#![allow(clippy::borrow_as_ptr)]
|
2020-12-06 08:01:03 -06:00
|
|
|
|
2023-03-24 08:04:35 -05:00
|
|
|
extern crate proc_macros;
|
|
|
|
use proc_macros::external;
|
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
|
|
|
}
|