2018-04-10 17:38:35 -05:00
|
|
|
error[E0597]: borrowed value does not live long enough
|
|
|
|
--> $DIR/regions-close-over-borrowed-ref-in-obj.rs:22:27
|
|
|
|
|
|
|
|
|
LL | let ss: &isize = &id(1);
|
|
|
|
| ^^^^^ temporary value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| - temporary value only lives until here
|
|
|
|
LL | }
|
|
|
|
| - borrow later used here, when `blah` is dropped
|
2018-09-09 13:43:46 -05:00
|
|
|
|
|
|
|
|
= note: consider using a `let` binding to create a longer lived value
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0597`.
|