summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generator/yield-in-box.stderr
blob: 8587e1dc663bc9e4a7e85aa487fbfff02489367b (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: generators are lazy and do nothing unless resumed
   = note: `#[warn(unused_must_use)]` on by default

warning: 1 warning emitted