]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issue-55872-2.rs
Rollup merge of #95504 - jyn514:library-alias, r=Mark-Simulacrum
[rust.git] / src / test / ui / impl-trait / issue-55872-2.rs
1 // edition:2018
2
3 #![feature(type_alias_impl_trait)]
4
5 pub trait Bar {
6     type E: Send;
7
8     fn foo<T>() -> Self::E;
9 }
10
11 impl<S> Bar for S {
12     type E = impl std::marker::Send;
13     fn foo<T>() -> Self::E {
14         async {}
15         //~^ ERROR type parameter `T` is part of concrete type but not used in parameter list for the `impl Trait` type alias
16     }
17 }
18
19 fn main() {}