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