mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
78d6b2ea4e
Removing the semicolon of the last statement of an expressionless block may change the block type even if the statement's type is `()`. If the block type is `!` because of a systematic early return, typing it as `()` may make it incompatible with the expected type for the block (to which `!` is cast).