fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
448 B16 linesraw
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`.