2018-04-10 17:38:35 -05:00
|
|
|
error[E0597]: `x` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:19:17
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | };
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `x` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `y` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:19:17
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | };
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `y` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `x` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:34:17
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | };
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `x` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `y` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:34:17
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | };
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `y` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `x` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:65:17
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | };
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `x` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the function body at 64:10...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:64:10
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `y` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:65:17
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | };
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `y` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the function body at 64:10...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:64:10
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `x` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:76:17
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | };
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `x` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the function body at 75:10...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:75:10
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `y` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:76:17
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | };
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `y` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the function body at 75:10...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:75:10
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `x` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:100:21
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `x` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the method body at 99:14...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:99:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(&self, x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `y` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:100:21
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `y` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the method body at 99:14...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:99:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(&self, x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `x` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:114:21
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `x` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the method body at 113:14...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:113:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(&self, x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `y` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:114:21
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `y` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the method body at 113:14...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:113:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(&self, x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `x` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:142:21
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `x` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the method body at 141:14...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:141:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(&self, x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `y` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:142:21
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `y` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the method body at 141:14...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:141:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(&self, x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `x` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:157:21
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `x` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the method body at 156:14...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:156:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(&self, x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `y` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:157:21
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `y` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the method body at 156:14...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:156:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(&self, x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `x` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:185:21
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `x` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the method body at 184:14...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:184:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(&self, x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `y` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:185:21
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `y` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the method body at 184:14...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:184:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(&self, x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `x` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:199:21
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `x` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the method body at 198:14...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:198:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(&self, x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error[E0597]: `y` does not live long enough
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:199:21
|
|
|
|
|
|
|
|
|
LL | let f = |t: bool| if t { x } else { y }; // (separate errors for `x` vs `y`)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `y` dropped here while still borrowed
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the method body at 198:14...
|
|
|
|
--> $DIR/region-borrow-params-issue-29793-small.rs:198:14
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | fn g<'a>(&self, x: usize, y:usize) -> Box<Fn(bool) -> usize + 'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error: aborting due to 20 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0597`.
|