about summary refs log tree commit diff
path: root/tests/ui/impl-trait/precise-capturing/migration-note.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-08-31 20:42:01 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-09-28 20:55:35 +0000
commit4973903cd204dd2cd36e15267de72ed6d954e3a6 (patch)
treebddfe6c5d9a5ab68ba777cf014a7fefe631be6eb /tests/ui/impl-trait/precise-capturing/migration-note.rs
parent7a0319f01d08e541c8e16febaa68c5fa8b66b586 (diff)
downloadrust-4973903cd204dd2cd36e15267de72ed6d954e3a6.tar.gz
rust-4973903cd204dd2cd36e15267de72ed6d954e3a6.zip
reword note
Diffstat (limited to 'tests/ui/impl-trait/precise-capturing/migration-note.rs')
-rw-r--r--tests/ui/impl-trait/precise-capturing/migration-note.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/impl-trait/precise-capturing/migration-note.rs b/tests/ui/impl-trait/precise-capturing/migration-note.rs
index 211def33320..412d8af9884 100644
--- a/tests/ui/impl-trait/precise-capturing/migration-note.rs
+++ b/tests/ui/impl-trait/precise-capturing/migration-note.rs
@@ -32,7 +32,7 @@ fn needs_static() {
     //~| NOTE borrowed value does not live long enoug
 
     fn needs_static(_: impl Sized + 'static) {}
-    //~^ NOTE requirement for `'static` introduced here
+    //~^ NOTE requirement that the value outlives `'static` introduced here
     needs_static(a);
     //~^ NOTE argument requires that `x` is borrowed for `'static`
 }
@@ -80,7 +80,7 @@ fn needs_static_mut() {
     //~| NOTE borrowed value does not live long enough
 
     fn needs_static(_: impl Sized + 'static) {}
-    //~^ NOTE requirement for `'static` introduced here
+    //~^ NOTE requirement that the value outlives `'static` introduced here
     needs_static(a);
     //~^ NOTE argument requires that `x` is borrowed for `'static`
 }