rust/tests/ui/explicit-tail-calls/ctfe-arg-bad-borrow.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
454 B
Plaintext
Raw Normal View History

2023-06-28 10:34:10 -05: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);
| ^^^^^^ 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`.