1 error[E0308]: mismatched types
2 --> $DIR/old-closure-expression-remove-semicolon.rs:8:19
8 | | - help: remove this semicolon to return this value
10 | |_____^ expected `i32`, found `()`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.