]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/impl-trait/must_outlive_least_region_or_bound.nll.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / must_outlive_least_region_or_bound.nll.stderr
index 4372de245078fc930be3cb4a27dd1f30e337be7d..e9d620877345423f65e0683bad69c34df47ab0ce 100644 (file)
@@ -9,7 +9,7 @@ LL | fn elided(x: &i32) -> impl Copy { x }
 help: to allow this `impl Trait` to capture borrowed data with lifetime `'1`, add `'_` as a bound
    |
 LL | fn elided(x: &i32) -> impl Copy + '_ { x }
-   |                       ^^^^^^^^^^^^^^
+   |                                 ^^^^
 
 error: lifetime may not live long enough
   --> $DIR/must_outlive_least_region_or_bound.rs:5:32
@@ -23,7 +23,7 @@ LL | fn explicit<'a>(x: &'a i32) -> impl Copy { x }
 help: to allow this `impl Trait` to capture borrowed data with lifetime `'a`, add `'a` as a bound
    |
 LL | fn explicit<'a>(x: &'a i32) -> impl Copy + 'a { x }
-   |                                ^^^^^^^^^^^^^^
+   |                                          ^^^^
 
 error: lifetime may not live long enough
   --> $DIR/must_outlive_least_region_or_bound.rs:7:46