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