External Publication
Visit Post

Change error message of a failing `assert_eq!`

Rust Internals [Unofficial] March 30, 2026
Source

In those cases the actual/expected labels become roughly as meaningful as left and right. For assert_ne the labels could become unactual and unexpected, or perhaps they could be left as is.

Discussion in the ATmosphere

Loading comments...