Sign in
rust
/
rust-by-example
/
refs/heads/macros
/
.
/
examples
/
variables
/
scope
/
input.md
blob: 59ca261ed5cd25cc87ee47dc57708d0b0c772063 [
file
] [
log
] [
blame
] [
view
] [
edit
]
Variables
have
local
scope
,
and
are constrained to live
in
a
*
block
*
(
a block
is
a collection of statements enclosed
by
braces
`{}`
).
Also
,
[
variable shadowing
](
https
:
//en.wikipedia.org/wiki/Variable_shadowing) is
allowed
.
{
scope
.
play
}