Much renaming and refreshing of RBE
This commit is contained in:
14
rustbyexample/hello.d/print.d/print_debug2.rs
Normal file
14
rustbyexample/hello.d/print.d/print_debug2.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug)]
|
||||
struct Person<'a> {
|
||||
name: &'a str,
|
||||
age: u8,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let name = "Peter";
|
||||
let age = 27;
|
||||
let peter = Person { name, age };
|
||||
|
||||
println!("{:#?}", peter);
|
||||
}
|
Reference in New Issue
Block a user