Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
doc
/
book
/
listings
/
ch05-using-structs-to-structure-related-data
/
output-only-01-debug
/
src
/
main.rs
blob: 019a357ab96c11e173c8cd068e0773d24aa090e5 [
file
] [
log
] [
blame
]
struct
Rectangle
{
width
:
u32
,
height
:
u32
,
}
fn
main
()
{
let
rect1
=
Rectangle
{
width
:
30
,
height
:
50
,
};
println
!(
"rect1 is {:?}"
,
rect1
);
}