]> git.proxmox.com Git - rustc.git/blame - src/test/ui/impl-trait/issue-55872-2.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / issue-55872-2.stderr
CommitLineData
1b1a35ee 1error[E0277]: the trait bound `impl Future: Copy` is not satisfied
29967ef6 2 --> $DIR/issue-55872-2.rs:14:14
416331ca 3 |
1b1a35ee
XL
4LL | type E = impl std::marker::Copy;
5 | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `impl Future`
416331ca
XL
6
7error: 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 |
10LL | fn foo<T>() -> Self::E {
11 | ____________________________^
12LL | |
13LL | | async {}
14LL | | }
15 | |_____^
16
17error: aborting due to 2 previous errors
18
19For more information about this error, try `rustc --explain E0277`.