]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/yield-subtype.stderr
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / generator / yield-subtype.stderr
1 warning: unused generator that must be used
2   --> $DIR/yield-subtype.rs:11:5
3    |
4 LL | /     || {
5 LL | |         yield a;
6 LL | |         yield b;
7 LL | |     };
8    | |_____^
9    |
10    = note: generators are lazy and do nothing unless resumed
11    = note: `#[warn(unused_must_use)]` on by default
12
13 warning: 1 warning emitted
14