mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
15 lines
454 B
Plaintext
15 lines
454 B
Plaintext
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);
|
|
| ^^^^^^ borrowed value does not live long enough
|
|
LL |
|
|
LL | }
|
|
| - `local` dropped here while still borrowed
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0597`.
|