mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	 c5598d6a9e
			
		
	
	
		c5598d6a9e
		
	
	
	
	
		
			
			avoid `{type error}` being leaked in user-facing messages,
particularly when using the `adt_const_params` feature
		
	
			
		
			
				
	
	
		
			9 lines
		
	
	
		
			171 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			171 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // https://github.com/rust-lang/rust/issues/113462
 | |
| 
 | |
| struct S2<'b>(&'b ());
 | |
| 
 | |
| struct S<'a, const N: S2>(&'a ());
 | |
| //~^ ERROR missing lifetime specifier [E0106]
 | |
| 
 | |
| fn main() {}
 |