2023-04-20 14:37:15 +00:00
|
|
|
//@aux-build:proc_macros.rs
|
2020-11-03 09:00:30 +09:00
|
|
|
|
|
|
|
#![warn(clippy::as_conversions)]
|
2022-01-02 14:26:44 +01:00
|
|
|
#![allow(clippy::borrow_as_ptr)]
|
2020-11-03 09:00:30 +09:00
|
|
|
|
2023-03-07 09:40:55 -05:00
|
|
|
extern crate proc_macros;
|
|
|
|
use proc_macros::external;
|
2019-11-15 22:27:07 +03:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let i = 0u32 as u64;
|
|
|
|
|
|
|
|
let j = &i as *const u64 as *mut u64;
|
2020-11-03 09:00:30 +09:00
|
|
|
|
2023-03-07 09:40:55 -05:00
|
|
|
external!(0u32 as u64);
|
2019-11-15 22:27:07 +03:00
|
|
|
}
|