1 error[E0308]: mismatched types
2 --> $DIR/closure-print-generic-2.rs:6:22
4 LL | let c = || println!("{} {}", t, x);
5 | -------------------------- the found closure
7 | -- ^ expected `()`, found closure
11 = note: expected unit type `()`
12 found closure `[closure@$DIR/closure-print-generic-2.rs:5:17: 5:43]`
13 help: use parentheses to call this closure
15 LL | let c1: () = c();
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0308`.