rust-lang/rust-by-example

Shadowing vs Freezing

block0xhash opened this issue · 0 comments

This example on Freezing should possibly be updated and moved to section 4.2 that talks of shadowing.
https://doc.rust-lang.org/stable/rust-by-example/variable_bindings/freeze.html

There is no "data freezing" going on based on the mutability state of the variables.

however as explained here #1516 its variable shadowing.