rustc/tests/ui/impl-trait/issue-55872-3.stderr
2025-01-11 15:57:26 +01:00

13 lines
543 B
Plaintext

error[E0277]: the trait bound `{async block@$DIR/issue-55872-3.rs:16:9: 16:14}: Copy` is not satisfied
--> $DIR/issue-55872-3.rs:14:20
|
LL | fn foo<T>() -> Self::E {
| ^^^^^^^ the trait `Copy` is not implemented for `{async block@$DIR/issue-55872-3.rs:16:9: 16:14}`
LL |
LL | async {}
| -------- return type was inferred to be `{async block@$DIR/issue-55872-3.rs:16:9: 16:14}` here
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.