mirror of
				https://git.proxmox.com/git/rustc
				synced 2025-10-31 03:59:49 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			236 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			236 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Regression test for #51008 -- the anonymous lifetime in `&i32` was
 | |
| // being incorrectly considered part of the "elided lifetimes" from
 | |
| // the impl.
 | |
| //
 | |
| // run-pass
 | |
| 
 | |
| trait A {
 | |
| 
 | |
| }
 | |
| 
 | |
| impl<F> A for F where F: FnOnce(&i32) {}
 | |
| 
 | |
| fn main() {}
 | 
