`impl Trait` for statics and consts
Rust Internals [Unofficial]
April 11, 2026
This already compiles on nightly:
#![feature(type_alias_impl_trait)]
type MyFn = impl Fn();
#[define_opaque(MyFn)]
const THING: MyFn = || {};
Discussion in the ATmosphere