diff options
Diffstat (limited to 'src/test/ui/parser/if-block-unreachable-expr.rs')
-rw-r--r-- | src/test/ui/parser/if-block-unreachable-expr.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/test/ui/parser/if-block-unreachable-expr.rs b/src/test/ui/parser/if-block-unreachable-expr.rs deleted file mode 100644 index 4063a3370..000000000 --- a/src/test/ui/parser/if-block-unreachable-expr.rs +++ /dev/null @@ -1,8 +0,0 @@ -// 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; }; } {} -} |