-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
use Foo::*;
will cause the following output:
error[E0432]: unresolved import `Foo`
--> src/lib.rs:1:5
|
1 | use Foo::*;
| ^^^ use of undeclared type or module `Foo`
warning: unused import: `Foo::*`
--> src/lib.rs:1:5
|
1 | use Foo::*;
| ^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
The warning should be silenced.
CC #56982
euclio, varkor, jfrimmel, tesuji and taiki-e
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.