summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/issue-52398.stderr
blob: 539343275df6021c64923f51493b339a2ed05135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
warning: unused generator that must be used
  --> $DIR/issue-52398.rs:17:5
   |
LL | /     move || {
LL | |         A.test(yield);
LL | |     };
   | |_____^
   |
   = note: generators are lazy and do nothing unless resumed
   = note: `#[warn(unused_must_use)]` on by default

warning: unused generator that must be used
  --> $DIR/issue-52398.rs:24:5
   |
LL | /     static move || {
LL | |         yield *y.borrow();
LL | |         return "Done";
LL | |     };
   | |_____^
   |
   = note: generators are lazy and do nothing unless resumed

warning: 2 warnings emitted