about summary refs log tree commit diff
path: root/tests/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.stderr
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2025-08-12 11:51:46 +0200
committerlcnr <rust@lcnr.de>2025-08-20 11:04:38 +0200
commit8365ad17da97bdc774aa167ad0d52c35d04745a0 (patch)
treebdcfcf291e0b7f28da7f1e82a56bda1b5fb84c7c /tests/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.stderr
parente255a9b28af44240686928df243f3afbf6999ad1 (diff)
downloadrust-8365ad17da97bdc774aa167ad0d52c35d04745a0.tar.gz
rust-8365ad17da97bdc774aa167ad0d52c35d04745a0.zip
handle opaque types before region inference
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.stderr4
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
    |