]> git.lizzy.rs Git - rust.git/blob - tests/ui/generator/yield-in-box.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / generator / yield-in-box.stderr
1 warning: unused generator that must be used
2   --> $DIR/yield-in-box.rs:11:5
3    |
4 LL | /     || {
5 LL | |         let y = 2u32;
6 LL | |         {
7 LL | |             let _t = box (&x, yield 0, &y);
8 ...  |
9 LL | |         }
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