]> git.lizzy.rs Git - rust.git/blob - tests/ui/generator/yield-subtype.stderr
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / 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