]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/issue-99122.rs
Rollup merge of #99787 - aDotInTheVoid:rdj-dyn, r=camelid,notriddle,GuillaumeGomez
[rust.git] / src / test / ui / asm / issue-99122.rs
1 // needs-asm-support
2 // only-x86_64
3
4 pub unsafe fn test() {
5     let pointer = 1u32 as *const _;
6     //~^ ERROR cannot cast to a pointer of an unknown kind
7     core::arch::asm!(
8         "nop",
9         in("eax") pointer,
10     );
11 }
12
13 fn main() {}