Skip to content

Better syntax checking on attributes #16974

Closed
@kmcallister

Description

@kmcallister

For example, #![crate_type(lib)] produces

error: main function not found
error: aborting due to previous error

which is not a very good clue to the correct syntax #![crate_type="lib"].

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions