// build-pass (FIXME(62277): could be check-pass?) #![allow(warnings)] #![feature(type_alias_impl_trait)] fn main() { } type Foo = impl std::fmt::Debug; trait Trait {} fn foo_desugared>(_: T) -> Foo { (42, std::marker::PhantomData::) }