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