]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/span/move-closure.stderr
Auto merge of #95295 - CAD97:layout-isize, r=scottmcm
[rust.git] / src / test / ui / span / move-closure.stderr
index ded581dc4968e1604a143b78f801bbbc2ac3fc95..dcc6078969449de5301dd33abcac8835119b978e 100644 (file)
@@ -7,7 +7,11 @@ LL |     let x: () = move || ();
    |            expected due to this
    |
    = note: expected unit type `()`
-                found closure `[closure@$DIR/move-closure.rs:5:17: 5:27]`
+                found closure `[closure@$DIR/move-closure.rs:5:17: 5:24]`
+help: use parentheses to call this closure
+   |
+LL |     let x: () = (move || ())();
+   |                 +          +++
 
 error: aborting due to previous error