]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/hrtb/hrtb-exists-forall-fn.stderr
Point at type in `let` assignment on type errors
[rust.git] / src / test / ui / hrtb / hrtb-exists-forall-fn.stderr
index 8534ee99c1fa7d6e2b36cfc92e767a01221c67dd..328e98657effb179aa1f90cc61ec76274c533b00 100644 (file)
@@ -2,7 +2,9 @@ error[E0308]: mismatched types
   --> $DIR/hrtb-exists-forall-fn.rs:17:34
    |
 LL |     let _: for<'b> fn(&'b u32) = foo();
-   |                                  ^^^^^ expected concrete lifetime, found bound lifetime parameter 'b
+   |            -------------------   ^^^^^ expected concrete lifetime, found bound lifetime parameter 'b
+   |            |
+   |            expected due to this
    |
    = note: expected fn pointer `for<'b> fn(&'b u32)`
               found fn pointer `fn(&u32)`