mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			364 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			364 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // https://github.com/rust-lang/rust/issues/72340
 | |
| 
 | |
| #![crate_name = "foo"]
 | |
| 
 | |
| pub struct Body;
 | |
| 
 | |
| impl Body {
 | |
|     pub fn empty() -> Self {
 | |
|         Body
 | |
|     }
 | |
| 
 | |
| }
 | |
| 
 | |
| impl Default for Body {
 | |
|     // @has foo/struct.Body.html '//a/@href' 'struct.Body.html#method.empty'
 | |
| 
 | |
|     /// Returns [`Body::empty()`](Body::empty).
 | |
|     fn default() -> Body {
 | |
|         Body::empty()
 | |
|     }
 | |
| }
 | 
