//@ edition:2018 #![feature(ptr_metadata)] #![feature(type_alias_impl_trait)] type Opaque = impl std::fmt::Debug + ?Sized; fn opaque() -> &'static Opaque { &[1] as &[i32] } fn a() { is_thin::(); //~^ ERROR type mismatch resolving `::Metadata == ()` is_thin::(); //~^ ERROR type mismatch resolving `::Metadata == ()` } fn is_thin + ?Sized>() {} fn main() {}