mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	 edafbaffb2
			
		
	
	
		edafbaffb2
		
			
		
	
	
	
	
		
			
			- Either explicitly annotate `let x: () = expr;` where `x` has unit type, or remove the unit binding to leave only `expr;` instead. - Fix disjoint-capture-in-same-closure test
		
			
				
	
	
		
			12 lines
		
	
	
		
			226 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			226 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // run-pass
 | |
| // check that type parameters can't "shadow" qualified paths.
 | |
| 
 | |
| fn check<Clone>(_c: Clone) {
 | |
|     fn check2() {
 | |
|         let () = <() as std::clone::Clone>::clone(&());
 | |
|     }
 | |
|     check2();
 | |
| }
 | |
| 
 | |
| fn main() { check(()); }
 |