summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generator/yield-in-box.stderr
blob: 7602e803945dc14e6ede067876691f7420f33c88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
warning: unused generator that must be used
  --> $DIR/yield-in-box.rs:11:5
   |
LL | /     || {
LL | |         let y = 2u32;
LL | |         {
LL | |             let _t = box (&x, yield 0, &y);
...  |
LL | |         }
LL | |     };
   | |______^
   |
   = note: `#[warn(unused_must_use)]` on by default
   = note: generators are lazy and do nothing unless resumed

warning: 1 warning emitted