Skip to content

rustc emits a misguided "a crate with a similar name exists" help note #59027

@nox

Description

@nox
Contributor
   Compiling script v0.0.1 (/Users/nox/src/servo/components/script)
error[E0412]: cannot find type `Inert` in this scope
   --> components/script/dom/bindings/root.rs:642:26
    |
642 |     type Output = Option<Inert<Dom<T>>>;
    |                          ^^^^^
help: a crate with a similar name exists
    |
642 |     type Output = Option<inert<Dom<T>>>;
    |                          ^^^^^
help: possible candidate is found in another module, you can import it into scope
    |
27  | use inert::Inert;
    |

A crate cannot be a type, so suggesting inert<Dom<T>> is wrong.

Activity

added
A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`
on Mar 8, 2019
added a commit that references this issue on Mar 25, 2019
4c27fb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nox

        Issue actions

          rustc emits a misguided "a crate with a similar name exists" help note · Issue #59027 · rust-lang/rust