mirror of
				https://git.proxmox.com/git/rustc
				synced 2025-11-04 03:17:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			350 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			350 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
struct Foo<'a, T: 'a>(&'a T);
 | 
						|
 | 
						|
struct Bar<'a>(&'a ());
 | 
						|
 | 
						|
fn main() {
 | 
						|
    Foo::<'static, 'static, ()>(&0);
 | 
						|
    //~^ ERROR struct takes 1 lifetime argument but 2 lifetime arguments were supplied
 | 
						|
 | 
						|
    Bar::<'static, 'static, ()>(&());
 | 
						|
    //~^ ERROR struct takes 1 lifetime argument but 2 lifetime arguments were supplied
 | 
						|
    //~| ERROR struct takes 0
 | 
						|
}
 |