fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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... | 9LL | | let _ = &a; 10LL | | }; 11 | |_________^ 12 | 13 = note: generators are lazy and do nothing unless resumed 14 = note: `#[warn(unused_must_use)]` on by default 15 16warning: 1 warning emitted 17