about summary refs log tree commit diff
path: root/tests/ui/coroutine/yield-in-initializer.stderr
blob: a01be9e8e73da4148d4e02da851b8acc115dd602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
warning: unused coroutine that must be used
  --> $DIR/yield-in-initializer.rs:6:18
   |
LL |       #[coroutine] static || {
   |  __________________^
LL | |         loop {
...  |
LL | |     };
   | |_____^
   |
   = note: coroutines are lazy and do nothing unless resumed
   = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default

warning: 1 warning emitted