blob: 744a563d3d147695436784a6445a5119a37eb94c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// needs-asm-support
// only-x86_64
pub unsafe fn test() {
let pointer = 1u32 as *const _;
//~^ ERROR cannot cast to a pointer of an unknown kind
core::arch::asm!(
"nop",
in("eax") pointer,
);
}
fn main() {}
|