Skip to content

Document compile_fail,E1234 syntax for marking compile_fail tests as failing with a particular error #132367

Open
@Manishearth

Description

@Manishearth

It's possible to mark tests as failing with a particular error. This largely seems to be used within rustc itself.

/// ```compile_fail,E0425
///  let x = x;
/// ```

Ought we document this in the rustdoc book somewhere? It currently does not appear to be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-doctestsArea: Documentation tests, run by rustdocT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions