You've already forked comprehensive-rust
							
							
				mirror of
				https://github.com/google/comprehensive-rust.git
				synced 2025-10-31 08:37:45 +02:00 
			
		
		
		
	Use non-generic default (#999)
This commit is contained in:
		| @@ -56,11 +56,11 @@ fn main() { | ||||
|      } | ||||
|      fn create_default() { | ||||
|          let tmp = Person { | ||||
|              ..Default::default() | ||||
|              ..Person::default() | ||||
|          }; | ||||
|          let tmp = Person { | ||||
|              name: "Sam".to_string(), | ||||
|              ..Default::default() | ||||
|              ..Person::default() | ||||
|          }; | ||||
|      } | ||||
|      ``` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user