You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#[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);
|
|
}
|