Skip to content

static_assert silently passes all consts #23008

Closed
@kmcallister

Description

@kmcallister

No unused attribute warning, either.

#[static_assert]
pub const BLEH: bool = false;

fn main() { }

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions