]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generator/generator-region-requirements.stderr
New upstream version 1.59.0+dfsg1
[rustc.git] / src / test / ui / generator / generator-region-requirements.stderr
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
3 |
4 LL | fn dangle(x: &mut i32) -> &'static mut i32 {
5 | -------- this data with an anonymous lifetime `'_`...
6 ...
7 LL | x
8 | ^ ...is used here...
9 ...
10 LL | GeneratorState::Complete(c) => return c,
11 | - ...and is required to live as long as `'static` here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0759`.