mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			428 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			428 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
fn main() {}
 | 
						|
 | 
						|
extern "C" { //~ NOTE while parsing this item list starting here
 | 
						|
    pub pub fn foo();
 | 
						|
    //~^ ERROR expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `safe`, `unsafe`, or `use`, found keyword `pub`
 | 
						|
    //~| NOTE expected one of 9 possible tokens
 | 
						|
    //~| HELP there is already a visibility modifier, remove one
 | 
						|
    //~| NOTE explicit visibility first seen here
 | 
						|
} //~ NOTE the item list ends here
 |