mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			242 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			242 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // 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() {}
 | 
