|
1 |
| -error[E0277]: the trait bound `{gen closure@$DIR/iter-macro-not-async-closure.rs:16:21: 16:28}: AsyncFnOnce()` is not satisfied |
2 |
| - --> $DIR/iter-macro-not-async-closure.rs:22:34 |
| 1 | +error[E0277]: the trait bound `{gen closure@$DIR/iter-macro-not-async-closure.rs:26:21: 26:28}: AsyncFnOnce()` is not satisfied |
| 2 | + --> $DIR/iter-macro-not-async-closure.rs:32:34 |
3 | 3 | |
|
4 | 4 | LL | let x = pin!(call_async_once(f));
|
5 |
| - | --------------- ^ unsatisfied trait bound |
| 5 | + | --------------- ^ the trait `AsyncFnOnce()` is not implemented for `{gen closure@$DIR/iter-macro-not-async-closure.rs:26:21: 26:28}` |
6 | 6 | | |
|
7 | 7 | | required by a bound introduced by this call
|
8 | 8 | |
|
9 |
| - = help: the trait `AsyncFnOnce()` is not implemented for `{gen closure@$DIR/iter-macro-not-async-closure.rs:16:21: 16:28}` |
10 | 9 | note: required by a bound in `call_async_once`
|
11 |
| - --> $DIR/iter-macro-not-async-closure.rs:11:34 |
| 10 | + --> $DIR/iter-macro-not-async-closure.rs:21:34 |
12 | 11 | |
|
13 | 12 | LL | async fn call_async_once(f: impl AsyncFnOnce()) {
|
14 | 13 | | ^^^^^^^^^^^^^ required by this bound in `call_async_once`
|
15 | 14 |
|
16 |
| -error[E0277]: the trait bound `{gen closure@$DIR/iter-macro-not-async-closure.rs:16:21: 16:28}: AsyncFnOnce()` is not satisfied |
17 |
| - --> $DIR/iter-macro-not-async-closure.rs:22:18 |
| 15 | +error[E0277]: the trait bound `{gen closure@$DIR/iter-macro-not-async-closure.rs:26:21: 26:28}: AsyncFnOnce()` is not satisfied |
| 16 | + --> $DIR/iter-macro-not-async-closure.rs:32:18 |
18 | 17 | |
|
19 | 18 | LL | let x = pin!(call_async_once(f));
|
20 |
| - | ^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 19 | + | ^^^^^^^^^^^^^^^^^^ the trait `AsyncFnOnce()` is not implemented for `{gen closure@$DIR/iter-macro-not-async-closure.rs:26:21: 26:28}` |
21 | 20 | |
|
22 |
| - = help: the trait `AsyncFnOnce()` is not implemented for `{gen closure@$DIR/iter-macro-not-async-closure.rs:16:21: 16:28}` |
23 | 21 | note: required by a bound in `call_async_once`
|
24 |
| - --> $DIR/iter-macro-not-async-closure.rs:11:34 |
| 22 | + --> $DIR/iter-macro-not-async-closure.rs:21:34 |
25 | 23 | |
|
26 | 24 | LL | async fn call_async_once(f: impl AsyncFnOnce()) {
|
27 | 25 | | ^^^^^^^^^^^^^ required by this bound in `call_async_once`
|
28 | 26 |
|
29 |
| -error[E0277]: the trait bound `{gen closure@$DIR/iter-macro-not-async-closure.rs:16:21: 16:28}: AsyncFnOnce()` is not satisfied |
30 |
| - --> $DIR/iter-macro-not-async-closure.rs:22:13 |
| 27 | +error[E0277]: the trait bound `{gen closure@$DIR/iter-macro-not-async-closure.rs:26:21: 26:28}: AsyncFnOnce()` is not satisfied |
| 28 | + --> $DIR/iter-macro-not-async-closure.rs:32:13 |
31 | 29 | |
|
32 | 30 | LL | let x = pin!(call_async_once(f));
|
33 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsyncFnOnce()` is not implemented for `{gen closure@$DIR/iter-macro-not-async-closure.rs:26:21: 26:28}` |
34 | 32 | |
|
35 |
| - = help: the trait `AsyncFnOnce()` is not implemented for `{gen closure@$DIR/iter-macro-not-async-closure.rs:16:21: 16:28}` |
36 | 33 | note: required by a bound in `call_async_once`
|
37 |
| - --> $DIR/iter-macro-not-async-closure.rs:11:34 |
| 34 | + --> $DIR/iter-macro-not-async-closure.rs:21:34 |
38 | 35 | |
|
39 | 36 | LL | async fn call_async_once(f: impl AsyncFnOnce()) {
|
40 | 37 | | ^^^^^^^^^^^^^ required by this bound in `call_async_once`
|
41 | 38 | = note: this error originates in the macro `pin` (in Nightly builds, run with -Z macro-backtrace for more info)
|
42 | 39 |
|
43 |
| -error[E0277]: the trait bound `{gen closure@$DIR/iter-macro-not-async-closure.rs:16:21: 16:28}: AsyncFnOnce()` is not satisfied |
44 |
| - --> $DIR/iter-macro-not-async-closure.rs:26:5 |
| 40 | +error[E0277]: the trait bound `{gen closure@$DIR/iter-macro-not-async-closure.rs:26:21: 26:28}: AsyncFnOnce()` is not satisfied |
| 41 | + --> $DIR/iter-macro-not-async-closure.rs:36:5 |
45 | 42 | |
|
46 | 43 | LL | x.poll(&mut Context::from_waker(Waker::noop()));
|
47 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 44 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `AsyncFnOnce()` is not implemented for `{gen closure@$DIR/iter-macro-not-async-closure.rs:26:21: 26:28}` |
48 | 45 | |
|
49 |
| - = help: the trait `AsyncFnOnce()` is not implemented for `{gen closure@$DIR/iter-macro-not-async-closure.rs:16:21: 16:28}` |
50 | 46 | note: required by a bound in `call_async_once`
|
51 |
| - --> $DIR/iter-macro-not-async-closure.rs:11:34 |
| 47 | + --> $DIR/iter-macro-not-async-closure.rs:21:34 |
52 | 48 | |
|
53 | 49 | LL | async fn call_async_once(f: impl AsyncFnOnce()) {
|
54 | 50 | | ^^^^^^^^^^^^^ required by this bound in `call_async_once`
|
|
0 commit comments