diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-08-31 20:42:01 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-09-28 20:55:35 +0000 |
| commit | 4973903cd204dd2cd36e15267de72ed6d954e3a6 (patch) | |
| tree | bddfe6c5d9a5ab68ba777cf014a7fefe631be6eb /tests/ui/impl-trait/precise-capturing/migration-note.rs | |
| parent | 7a0319f01d08e541c8e16febaa68c5fa8b66b586 (diff) | |
| download | rust-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.rs | 4 |
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` } |
