Skip to content

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

@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
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions