Flatten nested Rust projects into monorepo
This commit is contained in:
16
variables/src/main.rs
Normal file
16
variables/src/main.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
fn main() {
|
||||
let x = 10;
|
||||
|
||||
let x = x * 5;
|
||||
|
||||
{
|
||||
let x = x / 2;
|
||||
println!("x in the inner scope: {x}");
|
||||
}
|
||||
|
||||
println!("x in the outer scope: {x}");
|
||||
|
||||
// let mut space = " ";
|
||||
// space = space.len();
|
||||
// println!("spaces: {space}");
|
||||
}
|
Reference in New Issue
Block a user