1 error[E0308]: mismatched types
2 --> $DIR/add_semicolon_non_block_closure.rs:8:12
5 | - expected `()` because of default return type
7 | ^^^^^ expected `()`, found `i32`
9 help: consider using a semicolon here
11 LL | foo(|| { bar(); })
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0308`.