1 // ignore-tidy-linelength
2 // ignore-compare-mode-chalk
3 #![feature(type_alias_impl_trait)]
10 fn foo<T: Debug>(_: T) -> Self::Item;
14 pub struct S<T>(std::marker::PhantomData<T>);
19 type Item = impl Debug;
21 fn foo<T: Debug>(_: T) -> Self::Item {
22 //~^ Error type parameter `T` is part of concrete type but not used in parameter list for the `impl Trait` type alias
23 S::<T>(Default::default())