]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/issue-55872.rs
Auto merge of #77278 - camelid:use-correct-article, r=estebank
[rust.git] / src / test / ui / impl-trait / issue-55872.rs
1 // ignore-tidy-linelength
2 // ignore-compare-mode-chalk
3 #![feature(type_alias_impl_trait)]
4
5 pub trait Bar {
6     type E: Copy;
7
8     fn foo<T>() -> Self::E;
9 }
10
11 impl<S> Bar for S {
12     type E = impl Copy;
13
14     fn foo<T>() -> Self::E {
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
20 fn main() {}