blob: 75fb13c378c2445c9dbdb7f6dc67b3ec8b2778fb [file] [log] [blame] [edit]
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`.