mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			255 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			255 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| extern "C" {
 | |
|     const fn foo();
 | |
|     //~^ ERROR functions in `extern` blocks cannot
 | |
|     const unsafe fn bar();
 | |
|     //~^ ERROR functions in `extern` blocks cannot
 | |
|     //~| ERROR items in `extern` blocks without an `unsafe` qualifier cannot
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
