1 #![feature(type_alias_impl_trait)]
3 // This test ensures that unnameable types stay unnameable
4 // https://github.com/rust-lang/rust/issues/63063#issuecomment-1360053614
10 fn dont_define_this(_private: Private) {}
17 type MyPrivate = impl Sized;
18 //~^ ERROR: unconstrained opaque type
20 fn dont_define_this(_private: MyPrivate) {}
21 //~^ ERROR: incompatible type for trait