Skip to content

Properly document compile_error!() #46171

Closed
@Havvy

Description

@Havvy

https://doc.rust-lang.org/std/macro.compile_error.html

Currently says "Unconditionally causes compilation to fail with the given error message when encountered." and links to the RFC that proposed it. No examples, or otherwise explaining how it's supposed to be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsP-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions