User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
rust:hello [2020-07-07 13:04]
ziggi
rust:hello [2020-07-07 13:05] (current)
ziggi
Line 42: Line 42:
     age: i32     age: i32
 } }
- 
- 
-//trait Person { 
-    //fn new 
-//} 
  
 fn main() { fn main() {
Line 56: Line 51:
     let man = Person { name: String::​from("​John"​),​ age: 34 };     let man = Person { name: String::​from("​John"​),​ age: 34 };
     println!("​{:#?​}",​ man);     println!("​{:#?​}",​ man);
- 
 } }