]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/region-borrow-params-issue-29793-big.mir.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / regions / region-borrow-params-issue-29793-big.mir.stderr
1 error[E0597]: `x` does not live long enough
2   --> $DIR/region-borrow-params-issue-29793-big.rs:81:43
3    |
4 LL |         WrapB::new().set(|t: bool| if t { x } else { y }) // (separate errors for `x` vs `y`)
5    |                          ---------        ^ borrowed value does not live long enough
6    |                          |
7    |                          value captured here
8 ...
9 LL |     });
10    |     - `x` dropped here while still borrowed
11
12 error[E0597]: `y` does not live long enough
13   --> $DIR/region-borrow-params-issue-29793-big.rs:81:54
14    |
15 LL |         WrapB::new().set(|t: bool| if t { x } else { y }) // (separate errors for `x` vs `y`)
16    |                          ---------                   ^ borrowed value does not live long enough
17    |                          |
18    |                          value captured here
19 ...
20 LL |     });
21    |     - `y` dropped here while still borrowed
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0597`.