fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/add_semicolon_non_block_closure.rs:8:12 3 | 4LL | fn main() { 5 | - expected `()` because of default return type 6LL | foo(|| bar()) 7 | ^^^^^ expected `()`, found `i32` 8 | 9help: consider using a semicolon here 10 | 11LL | foo(|| { bar(); }) 12 | + +++ 13 14error: aborting due to previous error 15 16For more information about this error, try `rustc --explain E0308`.