mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			283 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			283 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // This test ensures that rustdoc doesn't panic on higher-ranked lifetimes
 | |
| // with bounds, because an error should have already been emitted by rustc.
 | |
| 
 | |
| pub fn hrlt<'b, 'c>()
 | |
| where
 | |
|     for<'a: 'b + 'c> &'a (): std::fmt::Debug,
 | |
|     //~^ ERROR bounds cannot be used in this context
 | |
| {
 | |
| }
 | 
