rust/tests/ui/parser/if-block-unreachable-expr.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
207 B
Rust
Raw Normal View History

// check-pass
// This regressed from 1.20 -> 1.21 -- the condition is unreachable,
// but it's still an expression, and should parse fine.
fn main() {
if { if true { return; } else { return; }; } {}
}