]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/reborrow-mut-upvar.stderr
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / generator / reborrow-mut-upvar.stderr
1 warning: unused generator that must be used
2   --> $DIR/reborrow-mut-upvar.rs:6:5
3    |
4 LL | /     || {
5 LL | |         {
6 LL | |             let _baz = &*bar;
7 LL | |             yield;
8 ...  |
9 LL | |         *bar = 2;
10 LL | |     };
11    | |______^
12    |
13    = note: `#[warn(unused_must_use)]` on by default
14    = note: generators are lazy and do nothing unless resumed
15
16 warning: 1 warning emitted
17