1 error[E0759]: `x` has an anonymous lifetime `'_` but it needs to satisfy a `'static` lifetime requirement
2 --> $DIR/generator-region-requirements.rs:8:9
4 LL | fn dangle(x: &mut i32) -> &'static mut i32 {
5 | -------- this data with an anonymous lifetime `'_`...
10 LL | GeneratorState::Complete(c) => return c,
11 | - ...and is required to live as long as `'static` here
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0759`.