2023-06-28 15:34:10 +00:00
|
|
|
error[E0597]: `local` does not live long enough
|
|
|
|
|
--> $DIR/ctfe-arg-bad-borrow.rs:8:25
|
|
|
|
|
|
|
|
|
|
|
LL | let local = Type;
|
|
|
|
|
| ----- binding `local` declared here
|
|
|
|
|
LL | become takes_borrow(&local);
|
2025-01-24 06:11:23 +01:00
|
|
|
| ^^^^^^- `local` dropped here while still borrowed
|
|
|
|
|
| |
|
|
|
|
|
| borrowed value does not live long enough
|
2023-06-28 15:34:10 +00:00
|
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0597`.
|