2023-04-20 09:37:15 -05:00
|
|
|
//@aux-build:proc_macros.rs
|
2020-11-02 18:00:30 -06:00
|
|
|
|
|
|
|
#![warn(clippy::as_conversions)]
|
2022-01-02 07:26:44 -06:00
|
|
|
#![allow(clippy::borrow_as_ptr)]
|
2020-11-02 18:00:30 -06:00
|
|
|
|
2023-03-07 08:40:55 -06: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-11-02 18:00:30 -06:00
|
|
|
|
2023-03-07 08:40:55 -06:00
|
|
|
external!(0u32 as u64);
|
2019-11-15 13:27:07 -06:00
|
|
|
}
|