diff --git a/structs/src/main.rs b/structs/src/main.rs index 62ef9ac..ebc7836 100644 --- a/structs/src/main.rs +++ b/structs/src/main.rs @@ -1,3 +1,4 @@ +#[derive(Debug)] struct Rectangle { width: u32, height: u32, @@ -9,6 +10,8 @@ fn main() { height: 50, }; + println!("rect1 is {:#?}", rect1); + println!( "The area of the rectangle is {} square pixels.", area(&rect1)