]> git.proxmox.com Git - rustc.git/blame - src/test/ui/span/move-closure.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / span / move-closure.stderr
CommitLineData
9e0c209e 1error[E0308]: mismatched types
0731742a 2 --> $DIR/move-closure.rs:5:17
9e0c209e 3 |
532ac7d7 4LL | let x: () = move || ();
60c5eb7d
XL
5 | -- ^^^^^^^^^^ expected `()`, found closure
6 | |
7 | expected due to this
9e0c209e 8 |
60c5eb7d 9 = note: expected unit type `()`
064997fb 10 found closure `[closure@$DIR/move-closure.rs:5:17: 5:24]`
923072b8
FG
11help: use parentheses to call this closure
12 |
13LL | let x: () = (move || ())();
14 | + +++
9e0c209e 15
041b39d2 16error: aborting due to previous error
9e0c209e 17
0531ce1d 18For more information about this error, try `rustc --explain E0308`.