1 #![feature(type_alias_impl_trait)]
7 // test that unused generic parameters are ok
8 type Two<T, U> = impl Debug;
10 fn two<T: Copy + Debug, U: Debug>(t: T, u: U) -> Two<T, U> {
12 //~^ ERROR `T` doesn't implement `Debug`
15 fn three<T: Copy + Debug, U: Debug>(t: T, u: U) -> Two<T, U> {
17 //~^ ERROR `T` doesn't implement `Debug`
18 //~| ERROR `U` doesn't implement `Debug`