Change error message of a failing `assert_eq!`
Rust Internals [Unofficial]
April 9, 2026
CodesInChaos:
> and it's not possible for one macro to be ideal for both cases
Technically a single macro could change its behavior based on #[cfg(test)], with an option to force one behavior.
Discussion in the ATmosphere