diff options
Diffstat (limited to 'tests/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.stderr')
| -rw-r--r-- | tests/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.stderr b/tests/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.stderr index c77ef79e7ed..62c591a0db6 100644 --- a/tests/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.stderr +++ b/tests/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.stderr @@ -8,7 +8,7 @@ LL | | LL | | current: None, LL | | remaining: self.0.iter(), LL | | } - | |_________^ returning this value requires that `'1` must outlive `'static` + | |_________^ opaque type requires that `'1` must outlive `'static` | help: to declare that `impl Iterator<Item = Box<(dyn Foo + 'static)>>` captures data from argument `self`, you can add an explicit `'_` lifetime bound | @@ -63,7 +63,7 @@ LL | | LL | | current: None, LL | | remaining: self.0.iter(), LL | | } - | |_________^ returning this value requires that `'a` must outlive `'static` + | |_________^ opaque type requires that `'a` must outlive `'static` | help: to declare that `impl Iterator<Item = Box<(dyn Foo + 'static)>>` captures data from argument `self`, you can add an explicit `'a` lifetime bound | |
