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