]> git.proxmox.com Git - rustc.git/blame - src/doc/rust-by-example/src/scope.md
New upstream version 1.39.0+dfsg1
[rustc.git] / src / doc / rust-by-example / src / scope.md
CommitLineData
2c00a5a8
XL
1# Scoping rules
2
3Scopes play an important part in ownership, borrowing, and lifetimes.
4That is, they indicate to the compiler when borrows are valid, when
5resources can be freed, and when variables are created or destroyed.