Skip to content

rustc happily compiles non-boolean branch expressions which assert at runtime #578

Closed
@jdm

Description

@jdm

auto a = 0u;
if (a) {
fail
}

This should be caught at compile time.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions