]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/if-block-unreachable-expr.rs
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / 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 }