Much renaming and refreshing of RBE
This commit is contained in:
18
rustbyexample/hello.d/print.d/print_debug.rs
Normal file
18
rustbyexample/hello.d/print.d/print_debug.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
#[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)));
|
||||
}
|
Reference in New Issue
Block a user