]>
Commit | Line | Data |
---|---|---|
3dfed10e XL |
1 | warning: unused generator that must be used |
2 | --> $DIR/too-live-local-in-immovable-gen.rs:8:9 | |
3 | | | |
4 | LL | / static move || { | |
5 | LL | | // Tests that the generator transformation finds out that `a` is not live | |
6 | LL | | // during the yield expression. Type checking will also compute liveness | |
7 | LL | | // and it should also find out that `a` is not live. | |
8 | ... | | |
136023e0 | 9 | LL | | let _ = &a; |
3dfed10e XL |
10 | LL | | }; |
11 | | |__________^ | |
12 | | | |
3dfed10e | 13 | = note: generators are lazy and do nothing unless resumed |
2b03887a | 14 | = note: `#[warn(unused_must_use)]` on by default |
3dfed10e XL |
15 | |
16 | warning: 1 warning emitted | |
17 |