mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			211 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			211 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use std::fmt;
 | |
| 
 | |
| pub trait Bar {}
 | |
| 
 | |
| impl<'a> Bar + 'a {
 | |
|     pub fn bar(&self) -> usize { 42 }
 | |
| }
 | |
| 
 | |
| impl<'a> fmt::Debug for Bar + 'a {
 | |
|     fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result {
 | |
|         Ok(())
 | |
|     }
 | |
| }
 | 
