Skip to content

rustc claims that an import is both "unresolved" and "unused" in 2018 #54390

Closed
@steveklabnik

Description

@steveklabnik
use std::fmt;

use fmt::Write;

fn main() {
}

compiling this under the 2015 edition says "unused import", but under 2018 edition, it gives both "unresolved import" and "unused import"

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-resolveArea: Name/path resolution done by `rustc_resolve` specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions