Skip to content

Instantly share code, notes, and snippets.

@gilles-leblanc
Last active August 29, 2015 14:02
Show Gist options
  • Save gilles-leblanc/e1faed3c7b7008a9d116 to your computer and use it in GitHub Desktop.
Save gilles-leblanc/e1faed3c7b7008a9d116 to your computer and use it in GitHub Desktop.
Rust: expressions 2
let a = {
let inner = 2;
inner * inner
};
println!("a = {}", a);
let b = {
let inner = 2;
inner * inner;
};
println!("b = {}", b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment