]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generator/too-live-local-in-immovable-gen.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / generator / too-live-local-in-immovable-gen.stderr
CommitLineData
3dfed10e
XL
1warning: unused generator that must be used
2 --> $DIR/too-live-local-in-immovable-gen.rs:8:9
3 |
4LL | / static move || {
5LL | | // Tests that the generator transformation finds out that `a` is not live
6LL | | // during the yield expression. Type checking will also compute liveness
7LL | | // and it should also find out that `a` is not live.
8... |
136023e0 9LL | | let _ = &a;
3dfed10e
XL
10LL | | };
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
16warning: 1 warning emitted
17