Skip to content

[Suggestion] E0432 - could it include suggestions to add "lib" in crate-type? #111243

Open
@dannywillems

Description

@dannywillems

Hi,

I am learning Rust and started a playbook.

I encountered the error E0432 while trying to use a binary in a library I have just created.
I spent a bit of time to understand it was because of a missing "lib" in crate-type. I thought it was automatically added as it was in the lib section.
Could suggestions be added to error messages?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsT-cargoRelevant to the cargo 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