Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
parser
/
if-block-unreachable-expr.rs
blob: 01d8f62ddfb1e4b4b4d88bcc7a756b0edda3540f [
file
] [
log
] [
blame
]
//@ 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
;
};
}
{}
}