{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreibmbpnjs5fdx3lg2hafwubuvmznqmi6rt7dgi73gef3thyksigtqu",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3miprp4prs7k2"
  },
  "path": "/t/change-error-message-of-a-failing-assert-eq/24118?page=2#post_24",
  "publishedAt": "2026-04-04T09:06:13.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "Rather than fiddling around with expected vs actual and updating the macro syntax, I'd rather the message just state what the arguments in the macro were. I.e., `assert_eq!(some_object.array[i], Some(\"foo\"))` could print something like 'assert some_object.array[i] == Some(\"foo\") failed: left is XXX, right is YYY'",
  "title": "Change error message of a failing `assert_eq!`"
}