Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadowing vs Freezing #1834

Open
block0xhash opened this issue Apr 8, 2024 · 0 comments
Open

Shadowing vs Freezing #1834

block0xhash opened this issue Apr 8, 2024 · 0 comments

Comments

@block0xhash
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant