mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
42ec5c7b32
When encountering an `if` expression with no `else` where the then block has a tail expression, we emit an E0308 type error. We now explain why `()` was expected.