DEV Community

Discussion on: My first impressions of Rust

Collapse
davidwhit profile image
DavidWhit • Edited on

I didn't double check myself but I'm sure you can't shadow a const. I'll just add that they are also inlined to be accessible anywhere so there address changes. That and they live for the live of the program like static.

Collapse
l0uisc profile image
Louis Cloete

You can't shadow a const, but you can shadow an immutable let binding.

Collapse
deepu105 profile image
Deepu K Sasidharan Author

Thanks