mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			290 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			290 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
extern "C" {
 | 
						|
    const fn foo();
 | 
						|
    //~^ ERROR functions in `extern` blocks cannot have qualifiers
 | 
						|
    const unsafe fn bar();
 | 
						|
    //~^ ERROR functions in `extern` blocks cannot have qualifiers
 | 
						|
    //~| ERROR items in unadorned `extern` blocks cannot have safety qualifiers
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |