]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-55850.stderr
Fix ICE in region naming.
[rust.git] / src / test / ui / nll / issue-55850.stderr
1 error[E0597]: `s` does not live long enough
2   --> $DIR/issue-55850.rs:38:16
3    |
4 LL |         yield &s[..] //~ ERROR `s` does not live long enough [E0597]
5    |                ^ borrowed value does not live long enough
6 LL |     })
7    |     - borrowed value only lives until here
8    |
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
11    |
12 LL | fn bug<'a>() -> impl Iterator<Item = &'a str> {
13    |        ^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0597`.