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