mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			288 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			288 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
const _: () = ();
 | 
						|
 | 
						|
fn main() {
 | 
						|
    a // Shouldn't suggest underscore
 | 
						|
    //~^ ERROR: cannot find value `a` in this scope
 | 
						|
}
 | 
						|
 | 
						|
trait Unknown {}
 | 
						|
 | 
						|
#[allow(unused_imports)]
 | 
						|
use Unknown as _;
 | 
						|
 | 
						|
fn foo<T: A>(x: T) {} // Shouldn't suggest underscore
 | 
						|
//~^ ERROR: cannot find trait `A` in this scope
 |