]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/if-block-unreachable-expr.rs
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / parser / if-block-unreachable-expr.rs
1 // check-pass
2
3 // This regressed from 1.20 -> 1.21 -- the condition is unreachable,
4 // but it's still an expression, and should parse fine.
5
6 fn main() {
7     if { if true { return; } else { return; }; } {}
8 }