Skip to content

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

Closed
@nox

Description

@nox
   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.

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

    Issue actions