blob: bf0c6986ef2cba0eff19647e69c914fe6a7ebe79 [file] [log] [blame]
error[E0597]: `s` does not live long enough
--> $DIR/issue-55850.rs:28:16
|
LL | yield &s[..]
| ^ borrowed value does not live long enough
LL | })
| - `s` dropped here while still borrowed
error[E0626]: borrow may still be in use when generator yields
--> $DIR/issue-55850.rs:28:16
|
LL | yield &s[..]
| -------^---- possible yield occurs here
error: aborting due to 2 previous errors
Some errors occurred: E0597, E0626.
For more information about an error, try `rustc --explain E0597`.