tail expression
A block's last expression, with no semicolon, which becomes its value.
The tail expression is the final expression in a block without a trailing semicolon; it is the block's value.
Examples
In
fn pay(hours: u32, rate: u32) -> u32 { hours * rate },hours * rateis the tail expression; adding a;after it fails with E0308.
See also