1 #![feature(type_alias_impl_trait)]
7 type Two<T, U> = impl Debug;
9 fn two<T: Debug>(t: T) -> Two<T, u32> {
10 //~^ ERROR non-defining opaque type use in defining scope
14 fn three<T: Debug, U>(t: T) -> Two<T, U> {
20 const FOO: Self::Blub;
28 fn four<T: Debug, U: Bar>(t: T) -> Two<T, U> {
32 fn is_sync<T: Sync>() {}
35 //FIXME(oli-obk): these currently cause cycle errors
36 //is_sync::<Two<i32, u32>>();
37 //is_sync::<Two<i32, *const i32>>();