]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/reference/src/statements.md
New upstream version 1.55.0+dfsg1
[rustc.git] / src / doc / reference / src / statements.md
index 06cd9513e50c4f6a6681cf10ca5e3f4c23fb0fe2..8d9c21d7db69f684c4aec79eb60d9f7075bd920d 100644 (file)
@@ -62,7 +62,8 @@ annotation and then optionally by an initializer expression. When no
 type annotation is given, the compiler will infer the type, or signal
 an error if insufficient type information is available for definite
 inference. Any variables introduced by a variable declaration are visible
-from the point of declaration until the end of the enclosing block scope.
+from the point of declaration until the end of the enclosing block scope,
+except when they are shadowed by another variable declaration.
 
 ## Expression statements