`impl Trait` for statics and consts
Rust Internals [Unofficial]
April 10, 2026
Note that this already works and is optimized as expected:
const DIGIT: &dyn Fn(&ParserState) -> Result = &;
Discussion in the ATmosphere