]> git.proxmox.com Git - rustc.git/blame - src/test/ui/closures/print/closure-print-generic-2.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / closures / print / closure-print-generic-2.stderr
CommitLineData
1b1a35ee
XL
1error[E0308]: mismatched types
2 --> $DIR/closure-print-generic-2.rs:6:22
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 `[closure@$DIR/closure-print-generic-2.rs:5:17: 5:43]`
13help: use parentheses to call this closure
14 |
15LL | let c1: () = c();
94222f64 16 | ++
1b1a35ee
XL
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0308`.