1 #![feature(type_alias_impl_trait)]
6 pub type Foo = impl Debug;
7 pub type Foot = impl Debug;
9 pub fn get_foo() -> Foo {
13 pub fn get_foot() -> Foot {
14 get_foo() //~ ERROR opaque type's hidden type cannot be another opaque type
19 let _: my_mod::Foot = my_mod::get_foot();