about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-09-29 13:49:32 -0400
committerJubilee Young <workingjubilee@gmail.com>2024-10-10 11:46:51 -0700
commit36076ecdc726c4e1104e70df2d142f39501a4f48 (patch)
tree030153f8a0622f24d1dfe8b71ff0f783bac6027c /tests
parenta7dc98733da8b84cfc21a538541a41803c4529a0 (diff)
downloadrust-36076ecdc726c4e1104e70df2d142f39501a4f48.tar.gz
rust-36076ecdc726c4e1104e70df2d142f39501a4f48.zip
Clarify implicit captures for RPITIT
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/impl-trait/precise-capturing/rpitit.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/impl-trait/precise-capturing/rpitit.stderr b/tests/ui/impl-trait/precise-capturing/rpitit.stderr
index 8c219bb04a2..498eae54a1c 100644
--- a/tests/ui/impl-trait/precise-capturing/rpitit.stderr
+++ b/tests/ui/impl-trait/precise-capturing/rpitit.stderr
@@ -2,9 +2,9 @@ error: `impl Trait` captures lifetime parameter, but it is not mentioned in `use
   --> $DIR/rpitit.rs:11:19
    |
 LL | trait TraitLt<'a: 'a> {
-   |               -- this lifetime parameter is captured
+   |               -- all lifetime parameters originating from a trait are captured implicitly
 LL |     fn hello() -> impl Sized + use<Self>;
-   |                   ^^^^^^^^^^^^^^^^^^^^^^ lifetime captured due to being mentioned in the bounds of the `impl Trait`
+   |                   ^^^^^^^^^^^^^^^^^^^^^^
 
 error: lifetime may not live long enough
   --> $DIR/rpitit.rs:15:5