Skip to content

Silence unused_import warning on unresolved import #63724

@estebank

Description

@estebank

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.C-enhancementCategory: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions