1 #![feature(type_alias_impl_trait)]
5 type Underconstrained<T: std::fmt::Debug> = impl Send;
7 // not a defining use, because it doesn't define *all* possible generics
8 fn underconstrained<U>(_: U) -> Underconstrained<U> {
9 //~^ ERROR `U` doesn't implement `Debug`
13 type Underconstrained2<T: std::fmt::Debug> = impl Send;
15 // not a defining use, because it doesn't define *all* possible generics
16 fn underconstrained2<U, V>(_: U, _: V) -> Underconstrained2<V> {
17 //~^ ERROR `V` doesn't implement `Debug`