pub use with glob import behaves differently when re-exported vs directly used #140694
Labels
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
C-discussion
Category: Discussion or questions that doesn't represent real issues.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code: Playground
I expected to see this happen:
When I use glob imports, I expected to import all importable entities that I can
pub use
to import directly.Instead, this happened:
I can use foo::foo() because it is re-exported.
And compiler and clippy(-W clippy::nursery) give many warnings.
Meta
rustc --version --verbose
:Some related link:
https://doc.rust-lang.org/reference/items/use-declarations.html#glob-imports
https://doc.rust-lang.org/error_codes/E0365.html
The text was updated successfully, but these errors were encountered: