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: Debug, U: Debug>(t: T, u: U) -> Two<T, U> {
12 //~^ ERROR `T` doesn't implement `Debug`
13 //~| ERROR `U` doesn't implement `Debug`
16 fn three<T: Debug, U: Debug>(t: T, u: U) -> Two<T, U> {
18 //~^ ERROR `T` doesn't implement `Debug`
19 //~| ERROR `U` doesn't implement `Debug`