1 // Issue 52985: user code provides no use case that allows a type alias `impl Trait`
2 // We now emit a 'could not find defining uses' error
4 #![feature(type_alias_impl_trait)]
6 type Foo = impl Copy; //~ could not find defining uses
8 // make compiler happy about using 'Foo'
9 fn bar(x: Foo) -> Foo { x }
12 let _: Foo = std::mem::transmute(0u8);