mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			400 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			400 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #[derive(Default)]
 | |
| pub struct Derive;
 | |
| 
 | |
| pub struct Manual;
 | |
| 
 | |
| impl Default for Manual {
 | |
|     fn default() -> Self {
 | |
|         Self
 | |
|     }
 | |
| }
 | |
| 
 | |
| //@ is '$.index[?(@.inner.impl.for.resolved_path.path == "Derive" && @.inner.impl.trait.path == "Default")].attrs' '["#[automatically_derived]"]'
 | |
| //@ is '$.index[?(@.inner.impl.for.resolved_path.path == "Manual" && @.inner.impl.trait.path == "Default")].attrs' '[]'
 | 
