1 error[E0515]: cannot yield value referencing local variable `s`
2 --> $DIR/issue-55850.rs:28:9
7 | | `s` is borrowed here
8 | yields a value referencing data owned by the current function
10 error[E0626]: borrow may still be in use when generator yields
11 --> $DIR/issue-55850.rs:28:16
14 | -------^---- possible yield occurs here
16 error: aborting due to 2 previous errors
18 Some errors have detailed explanations: E0515, E0626.
19 For more information about an error, try `rustc --explain E0515`.