1 #![feature(type_alias_impl_trait)]
7 type Two<T, U> = impl Debug;
9 fn three<T: Debug, U>(t: T) -> Two<T, U> {
11 //~^ ERROR `T` doesn't implement `Debug`
16 const FOO: Self::Blub;
24 fn four<T: Debug, U: Bar>(t: T) -> Two<T, U> {
26 //~^ ERROR `U: Bar` is not satisfied
27 //~| ERROR `T` doesn't implement `Debug`
30 fn is_sync<T: Sync>() {}
33 //FIXME(oli-obk): these currently cause cycle errors
34 //is_sync::<Two<i32, u32>>();
35 //is_sync::<Two<i32, *const i32>>();