]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/nll/issue-52534.stderr
Fixed off-by-one span.
[rust.git] / src / test / ui / nll / issue-52534.stderr
index 873f17d8deb1f6daecf503b1dcb32a1b327748b5..50b379755d35b4d0d04cff92fad374adf0be85d4 100644 (file)
@@ -2,9 +2,9 @@ error[E0597]: `x` does not live long enough
   --> $DIR/issue-52534.rs:22:14
    |
 LL |     foo(|a| &x)
-   |           -  ^ `x` would have to be valid for `'0`
-   |           |
-   |           has type `&'0 u32`
+   |            ^ `x` would have to be valid for `'0`
+   |          |
+   |          has type `&'0 u32`
 LL | }
    | - ...but `x` is only valid for the duration of the `bar` function, so it is dropped here while still borrowed
 
@@ -12,9 +12,9 @@ error[E0597]: `y` does not live long enough
   --> $DIR/issue-52534.rs:27:26
    |
 LL |     baz(|first, second| &y)
-   |               -          ^ `y` would have to be valid for `'0`
-   |               |
-   |               has type `&'0 u32`
+   |          -----           ^ `y` would have to be valid for `'0`
+   |          |
+   |          has type `&'0 u32`
 LL | }
    | - ...but `y` is only valid for the duration of the `foobar` function, so it is dropped here while still borrowed