mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			337 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			337 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ needs-asm-support
 | |
| //@ run-rustfix
 | |
| 
 | |
| use std::arch::global_asm;
 | |
| 
 | |
| fn main() {}
 | |
| 
 | |
| global_asm!("", options(nomem, readonly, noreturn, raw));
 | |
| //~^ ERROR the `nomem` option cannot be used with `global_asm!`
 | |
| //~| ERROR the `readonly` option cannot be used with `global_asm!`
 | |
| //~| ERROR the `noreturn` option cannot be used with `global_asm!`
 | 
