blob: c0dff6ec384e5348a8b8f8e460d00fa95a416619 [file] [log] [blame]
error[E0597]: borrowed value does not live long enough
--> $DIR/regions-free-region-ordering-caller1.rs:19:27
|
LL | let z: &'a & usize = &(&y);
| ^^^^ temporary value does not live long enough
...
LL | }
| - temporary value only lives until here
|
note: borrowed value must be valid for the lifetime 'a as defined on the function body at 15:10...
--> $DIR/regions-free-region-ordering-caller1.rs:15:10
|
LL | fn call1<'a>(x: &'a usize) {
| ^^
error[E0597]: `y` does not live long enough
--> $DIR/regions-free-region-ordering-caller1.rs:19:29
|
LL | let z: &'a & usize = &(&y);
| ^ borrowed value does not live long enough
...
LL | }
| - borrowed value only lives until here
|
note: borrowed value must be valid for the lifetime 'a as defined on the function body at 15:10...
--> $DIR/regions-free-region-ordering-caller1.rs:15:10
|
LL | fn call1<'a>(x: &'a usize) {
| ^^
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0597`.