1 error[E0597]: `s` does not live long enough
2 --> $DIR/issue-55850.rs:38:16
4 LL | yield &s[..] //~ ERROR `s` does not live long enough [E0597]
5 | ^ borrowed value does not live long enough
7 | - borrowed value only lives until here
9 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 35:8...
10 --> $DIR/issue-55850.rs:35:8
12 LL | fn bug<'a>() -> impl Iterator<Item = &'a str> {
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0597`.