`impl Trait` for statics and consts
Rust Internals [Unofficial]
April 10, 2026
This seems like something relatively simple compared to type_alias_impl_trait and does not require a typedef. e.g.
const DIGIT: impl Fn(&ParserState) -> Result<u8> = <my parser combinator here>;
Discussion in the ATmosphere