#![feature(type_alias_impl_trait)] use std::fmt::Debug; fn main() {} // test that unused generic parameters are ok type Two = impl Debug; fn two(t: T, u: U) -> Two { (t, u) //~^ ERROR `T` doesn't implement `Debug` //~| ERROR `U` doesn't implement `Debug` } fn three(t: T, u: U) -> Two { (u, t) //~^ ERROR `T` doesn't implement `Debug` //~| ERROR `U` doesn't implement `Debug` }