|
| 1 | +error[E0277]: the trait bound `{async block@$DIR/stalled-coroutine-obligations.rs:18:18: 18:23}: Copy` is not satisfied |
| 2 | + --> $DIR/stalled-coroutine-obligations.rs:18:14 |
| 3 | + | |
| 4 | +LL | let foo: T = async {}; |
| 5 | + | ^ the trait `Copy` is not implemented for `{async block@$DIR/stalled-coroutine-obligations.rs:18:18: 18:23}` |
| 6 | + |
| 7 | +error[E0277]: the trait bound `{async block@$DIR/stalled-coroutine-obligations.rs:22:18: 22:23}: Clone` is not satisfied |
| 8 | + --> $DIR/stalled-coroutine-obligations.rs:22:14 |
| 9 | + | |
| 10 | +LL | let bar: U = async {}; |
| 11 | + | ^ the trait `Clone` is not implemented for `{async block@$DIR/stalled-coroutine-obligations.rs:22:18: 22:23}` |
| 12 | + |
| 13 | +error[E0277]: the trait bound `False: Valid` is not satisfied in `{async block@$DIR/stalled-coroutine-obligations.rs:33:18: 33:23}` |
| 14 | + --> $DIR/stalled-coroutine-obligations.rs:33:14 |
| 15 | + | |
| 16 | +LL | let foo: T = async { a }; |
| 17 | + | ^ ----- within this `{async block@$DIR/stalled-coroutine-obligations.rs:33:18: 33:23}` |
| 18 | + | | |
| 19 | + | unsatisfied trait bound |
| 20 | + | |
| 21 | +help: within `{async block@$DIR/stalled-coroutine-obligations.rs:33:18: 33:23}`, the trait `Valid` is not implemented for `False` |
| 22 | + --> $DIR/stalled-coroutine-obligations.rs:27:1 |
| 23 | + | |
| 24 | +LL | struct False; |
| 25 | + | ^^^^^^^^^^^^ |
| 26 | +note: captured value does not implement `Valid` |
| 27 | + --> $DIR/stalled-coroutine-obligations.rs:33:26 |
| 28 | + | |
| 29 | +LL | let foo: T = async { a }; |
| 30 | + | ^ has type `False` which does not implement `Valid` |
| 31 | + |
| 32 | +error[E0271]: type mismatch resolving `impl Future + Send == {async block@$DIR/stalled-coroutine-obligations.rs:42:9: 42:19}` |
| 33 | + --> $DIR/stalled-coroutine-obligations.rs:39:5 |
| 34 | + | |
| 35 | +LL | fn stalled_send(&self, b: *mut ()) -> impl Future + Send { |
| 36 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ |
| 37 | + |
| 38 | +error[E0271]: type mismatch resolving `impl Future + Send == {async block@$DIR/stalled-coroutine-obligations.rs:42:9: 42:19}` |
| 39 | + --> $DIR/stalled-coroutine-obligations.rs:42:9 |
| 40 | + | |
| 41 | +LL | / async move { |
| 42 | +LL | | |
| 43 | +LL | | b |
| 44 | +LL | | } |
| 45 | + | |_________^ types differ |
| 46 | + |
| 47 | +error[E0271]: type mismatch resolving `{async block@$DIR/stalled-coroutine-obligations.rs:42:9: 42:19} <: impl Future + Send` |
| 48 | + --> $DIR/stalled-coroutine-obligations.rs:39:62 |
| 49 | + | |
| 50 | +LL | fn stalled_send(&self, b: *mut ()) -> impl Future + Send { |
| 51 | + | ______________________________________________________________^ |
| 52 | +LL | | |
| 53 | +LL | | |
| 54 | +LL | | async move { |
| 55 | +... | |
| 56 | +LL | | } |
| 57 | + | |_____^ types differ |
| 58 | + |
| 59 | +error: aborting due to 6 previous errors |
| 60 | + |
| 61 | +Some errors have detailed explanations: E0271, E0277. |
| 62 | +For more information about an error, try `rustc --explain E0271`. |
0 commit comments