]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/if-block-unreachable-expr.rs
Auto merge of #100678 - GuillaumeGomez:improve-rustdoc-json-tests, r=aDotInTheVoid
[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 }