1 // ignore-tidy-linelength
2 // ignore-compare-mode-chalk
3 #![feature(arbitrary_self_types)]
4 #![feature(type_alias_impl_trait)]
11 fn foo(self: impl Deref<Target = Self>) -> Self::Bar;
17 fn foo(self: impl Deref<Target = Self>) -> Self::Bar {
18 //~^ Error type parameter `impl Deref<Target = Self>` is part of concrete type but not used in parameter list for the `impl Trait` type alias