]> git.lizzy.rs Git - rust.git/blob - tests/ui/generator/reborrow-mut-upvar.stderr
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / 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: generators are lazy and do nothing unless resumed
14    = note: `#[warn(unused_must_use)]` on by default
15
16 warning: 1 warning emitted
17