diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-06 20:50:51 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-03-23 14:11:04 +0000 |
| commit | eb3707e4b49e7d19d048cf2187d6e3643be9dba2 (patch) | |
| tree | c7805bcb8ecb88c43c90e48eac1eaa6acd795850 /tests/ui/impl-trait/precise-capturing/rpitit.stderr | |
| parent | 97fc1f62d8c3f9b725b827540389a8874501c96e (diff) | |
| download | rust-eb3707e4b49e7d19d048cf2187d6e3643be9dba2.tar.gz rust-eb3707e4b49e7d19d048cf2187d6e3643be9dba2.zip | |
Stabilize precise_capturing_in_traits
Diffstat (limited to 'tests/ui/impl-trait/precise-capturing/rpitit.stderr')
| -rw-r--r-- | tests/ui/impl-trait/precise-capturing/rpitit.stderr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/impl-trait/precise-capturing/rpitit.stderr b/tests/ui/impl-trait/precise-capturing/rpitit.stderr index 498eae54a1c..ff461e81079 100644 --- a/tests/ui/impl-trait/precise-capturing/rpitit.stderr +++ b/tests/ui/impl-trait/precise-capturing/rpitit.stderr @@ -1,5 +1,5 @@ error: `impl Trait` captures lifetime parameter, but it is not mentioned in `use<...>` precise captures list - --> $DIR/rpitit.rs:11:19 + --> $DIR/rpitit.rs:9:19 | LL | trait TraitLt<'a: 'a> { | -- all lifetime parameters originating from a trait are captured implicitly @@ -7,7 +7,7 @@ LL | fn hello() -> impl Sized + use<Self>; | ^^^^^^^^^^^^^^^^^^^^^^ error: lifetime may not live long enough - --> $DIR/rpitit.rs:15:5 + --> $DIR/rpitit.rs:13:5 | LL | fn trait_lt<'a, 'b, T: for<'r> TraitLt<'r>> () { | -- -- lifetime `'b` defined here @@ -24,7 +24,7 @@ LL | | ); = help: consider adding the following bound: `'a: 'b` error: lifetime may not live long enough - --> $DIR/rpitit.rs:15:5 + --> $DIR/rpitit.rs:13:5 | LL | fn trait_lt<'a, 'b, T: for<'r> TraitLt<'r>> () { | -- -- lifetime `'b` defined here |
