1 #![feature(type_alias_impl_trait)]
7 // test that unused generic parameters are ok
8 type Two<T, U> = impl Debug;
9 //~^ ERROR `T` doesn't implement `Debug`
11 fn one<T: Debug>(t: T) -> Two<T, T> {
12 //~^ ERROR non-defining opaque type use in defining scope
16 fn two<T: Debug, U>(t: T, _: U) -> Two<T, U> {