fork/rust

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

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

master
734 B20 linesraw
1error[E0308]: mismatched types
2  --> $DIR/closure-print-generic-trim-off-verbose-2.rs:9:23
3   |
4LL |         let c = || println!("{} {}", t, x);
5   |                 -- the found closure
6LL |         let c1 : () = c;
7   |                  --   ^ expected `()`, found closure
8   |                  |
9   |                  expected due to this
10   |
11   = note: expected unit type `()`
12                found closure `{mod1::f<T>::{closure#0} closure_args=(unavailable) args=[T, ?16t, extern "rust-call" fn(()), ?15t]}`
13help: use parentheses to call this closure
14   |
15LL |         let c1 : () = c();
16   |                        ++
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0308`.