blob: 40388c3b6c88aed1bdcb0939a819422a19fbc4ca [file] [log] [blame]
#![feature(type_alias_impl_trait)]
use std::fmt::Debug;
fn main() {}
// test that unused generic parameters are ok
type Two<T, U> = impl Debug;
fn one<T: Debug>(t: T) -> Two<T, T> {
//~^ ERROR non-defining opaque type use in defining scope
t
}
fn three<T, U: Debug>(_: T, u: U) -> Two<T, U> {
u
}