I don't know whether it's better to allow it or deny it, but it should definitely do something reasonable, and not what happens today. On the pro side, shadowing usually works in Rust. Personally, I'd be fine with not allowing types with primitive names, but I'm sure others have opinions as well. If you are interested you might follow up on the issue tracker.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Request for feedback: `impl dyn Trait {}` implicit `'static` diagnostic | 16 | 1544 | September 29, 2020 | |
Priorities after 1.0 | 104 | 42715 | March 25, 2019 | |
Why isn't trait specialization a higher priority for Rust development? | 13 | 1174 | December 20, 2024 | |
[Pre-RFC] Demoting Lifetimes at Return | 2 | 659 | February 10, 2020 | |
Triage digest: Wed Aug 26 2015
|
1 | 1005 | March 25, 2019 |