External Publication
Visit Post

Change error message of a failing `assert_eq!`

Rust Internals [Unofficial] March 30, 2026
Source

What if neither argument is the actual or expected one? For instance, if I'm writing a zip_eq for slices and assert they both have the same length? And what about assert_ne?

I'm not strongly opposed, just curious whether these questions were considered?

Discussion in the ATmosphere

Loading comments...