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.

19 lines
384 B

#[derive(Debug)]
struct Structure(i32);
#[derive(Debug)]
struct Deep(Structure);
fn main() {
println!("{:?} months in a year.", 12);
println!(
"{1:?} {0:?} is the {actor:?} name.",
"Slater",
"Christian",
actor = "actor's"
);
println!("Now {:?} will print!", Structure(3));
println!("Now {:?} will print!", Deep(Structure(7)));
}