]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-23046.stderr
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-23046.stderr
index 12b2eb48e7eaa2987d341590f80595f040d88ba6..1403ecbd92d49df96d866d01e532d8a0e3a67567 100644 (file)
@@ -2,7 +2,12 @@ error[E0282]: type annotations needed for `Expr<'_, VAR>`
   --> $DIR/issue-23046.rs:17:15
    |
 LL |     let ex = |x| {
-   |               ^ consider giving this closure parameter the explicit type `Expr<'_, VAR>`, where the type parameter `VAR` is specified
+   |               ^
+   |
+help: consider giving this closure parameter an explicit type, where the type for type parameter `VAR` is specified
+   |
+LL |     let ex = |x: Expr<'_, VAR>| {
+   |                +++++++++++++++
 
 error: aborting due to previous error