2018-06-01 13:41:44 +00:00
|
|
|
error[E0597]: borrowed value does not live long enough
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/promote-ref-mut-in-let-issue-46557.rs:5:9
|
2018-06-01 13:41:44 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let ref mut x = 1234543;
|
2018-06-01 13:41:44 +00:00
|
|
|
| ^^^^^^^^^ temporary value does not live long enough
|
|
|
|
LL | x
|
|
|
|
LL | }
|
|
|
|
| - temporary value only lives until here
|
|
|
|
|
|
|
|
|
= note: borrowed value must be valid for the static lifetime...
|
|
|
|
|
|
|
|
error[E0597]: borrowed value does not live long enough
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/promote-ref-mut-in-let-issue-46557.rs:10:10
|
2018-06-01 13:41:44 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let (ref mut x, ) = (1234543, );
|
2018-06-01 13:41:44 +00:00
|
|
|
| ^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
LL | x
|
|
|
|
LL | }
|
|
|
|
| - borrowed value only lives until here
|
|
|
|
|
|
|
|
|
= note: borrowed value must be valid for the static lifetime...
|
|
|
|
|
|
|
|
error[E0597]: borrowed value does not live long enough
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/promote-ref-mut-in-let-issue-46557.rs:16:9
|
2018-06-01 13:41:44 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | ref mut x => x
|
2018-06-01 13:41:44 +00:00
|
|
|
| ^^^^^^^^^ temporary value does not live long enough
|
|
|
|
LL | }
|
|
|
|
LL | }
|
|
|
|
| - temporary value only lives until here
|
|
|
|
|
|
|
|
|
= note: borrowed value must be valid for the static lifetime...
|
|
|
|
|
|
|
|
error[E0597]: borrowed value does not live long enough
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/promote-ref-mut-in-let-issue-46557.rs:22:10
|
2018-06-01 13:41:44 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | (ref mut x,) => x,
|
2018-06-01 13:41:44 +00:00
|
|
|
| ^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
LL | }
|
|
|
|
LL | }
|
|
|
|
| - borrowed value only lives until here
|
|
|
|
|
|
|
|
|
= note: borrowed value must be valid for the static lifetime...
|
|
|
|
|
|
|
|
error[E0597]: borrowed value does not live long enough
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/promote-ref-mut-in-let-issue-46557.rs:27:10
|
2018-06-01 13:41:44 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | &mut 1234543
|
2018-06-01 13:41:44 +00:00
|
|
|
| ^^^^^^^ temporary value does not live long enough
|
|
|
|
LL | }
|
|
|
|
| - temporary value only lives until here
|
|
|
|
|
|
|
|
|
= note: borrowed value must be valid for the static lifetime...
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0597`.
|