diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2025-09-28 21:13:53 +0000 | 
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2025-09-28 21:13:53 +0000 | 
| commit | c5313fed76a99942edb4c7f94607fa3d2d6da21c (patch) | |
| tree | 85da949e5e0de1d094bb20c8b2911d0da1691385 /compiler/rustc_resolve/src/lib.rs | |
| parent | 58f5260b960004090bfa9e7ef5068d6554ac9f33 (diff) | |
| download | rust-c5313fed76a99942edb4c7f94607fa3d2d6da21c.tar.gz rust-c5313fed76a99942edb4c7f94607fa3d2d6da21c.zip | |
Point at multiple outlives requirements instead of just the first one
```
error[E0716]: temporary value dropped while borrowed
  --> $DIR/multiple-sources-for-outlives-requirement.rs:5:38
   |
LL | fn foo<'b>() {
   |        -- lifetime `'b` defined here
LL |     outlives_indir::<'_, 'b, _>(&mut 1u32);
   |     ---------------------------------^^^^-- temporary value is freed at the end of this statement
   |     |                                |
   |     |                                creates a temporary value which is freed while still in use
   |     argument requires that borrow lasts for `'b`
   |
note: requirements that the value outlives `'b` introduced here
  --> $DIR/multiple-sources-for-outlives-requirement.rs:1:23
   |
LL | fn outlives_indir<'a: 'b, 'b, T: 'a>(_x: T) {}
   |                       ^^         ^^
```
Diffstat (limited to 'compiler/rustc_resolve/src/lib.rs')
0 files changed, 0 insertions, 0 deletions
