summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/yield-in-box.stderr
blob: 9d03ee00800c8f489b7b4ca96952df1d847a7577 (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