mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			176 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			176 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| struct Foo<
 | |
|     'a,
 | |
|     const N: usize = {
 | |
|         let x: &'a ();
 | |
|         //~^ ERROR use of non-static lifetime `'a` in const generic
 | |
|         3
 | |
|     },
 | |
| >(&'a ());
 | |
| 
 | |
| fn main() {}
 | 
