]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/reborrow-mut-upvar.stderr
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[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: generators are lazy and do nothing unless resumed
14    = note: `#[warn(unused_must_use)]` on by default
15
16 warning: 1 warning emitted
17