]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: the trait bound `impl Future: Copy` is not satisfied |
29967ef6 | 2 | --> $DIR/issue-55872-2.rs:14:14 |
416331ca | 3 | | |
1b1a35ee XL |
4 | LL | type E = impl std::marker::Copy; |
5 | | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future` | |
416331ca XL |
6 | |
7 | error: type parameter `T` is part of concrete type but not used in parameter list for the `impl Trait` type alias | |
29967ef6 | 8 | --> $DIR/issue-55872-2.rs:16:28 |
416331ca XL |
9 | | |
10 | LL | fn foo<T>() -> Self::E { | |
11 | | ____________________________^ | |
12 | LL | | | |
13 | LL | | async {} | |
14 | LL | | } | |
15 | | |_____^ | |
16 | ||
17 | error: aborting due to 2 previous errors | |
18 | ||
19 | For more information about this error, try `rustc --explain E0277`. |