]> git.lizzy.rs Git - rust.git/blob - tests/ui/generator/too-live-local-in-immovable-gen.stderr
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / generator / too-live-local-in-immovable-gen.stderr
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 ...  |
9 LL | |             let _ = &a;
10 LL | |         };
11    | |_________^
12    |
13    = note: generators are lazy and do nothing unless resumed
14    = note: `#[warn(unused_must_use)]` on by default
15
16 warning: 1 warning emitted
17