mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-05-01 10:49:12 +08:00
13 lines
193 B
Rust
Executable File
13 lines
193 B
Rust
Executable File
fn main() {
|
|
let x = 5;
|
|
|
|
let x = x + 1;
|
|
|
|
{
|
|
let x = x * 2;
|
|
println!("The value of x in the inner scope is: {}", x);
|
|
}
|
|
|
|
println!("The value of x is: {}", x);
|
|
}
|