mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-04-23 14:18:13 +08:00
16 lines
212 B
Rust
Executable File
16 lines
212 B
Rust
Executable File
#[derive(Debug)]
|
|
struct Rectangle {
|
|
width: u32,
|
|
height: u32,
|
|
}
|
|
|
|
fn main() {
|
|
let scale = 2;
|
|
let rect1 = Rectangle {
|
|
width: dbg!(30 * scale),
|
|
height: 50,
|
|
};
|
|
|
|
dbg!(&rect1);
|
|
}
|