`impl Trait` for statics and consts
Rust Internals [Unofficial]
April 10, 2026
This looks longer than just writing a function though. The point of type_alias_impl_trait is that you can give a name to the closure and store it in a type without using generics.
Discussion in the ATmosphere