{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreib6vohgblhc2g54bkjkuzzklidg7yctlt5nraln5z5jwnjw6hsi2u",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3miheerengtr2"
  },
  "path": "/t/change-error-message-of-a-failing-assert-eq/24118?page=2#post_22",
  "publishedAt": "2026-04-01T17:33:08.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "ekuber:\n\n> which would provide 4 ways of opting into the change of wording without _too_ much additional verbosity.\n\nCome to think of it, the macro could just optionally accept _any_ ident, defaulting to the current `left`/`right`.\n\nThus if you want\n\n\n    assert_eq!(calculated = x.sqrt(), reference = 1.3049523047);\n\n\nyou can do that too.\n\nOr use translated labels, or whatever.\n\nWhile that's technically breaking, any `assert_eq!` with an assignment as the expression is useless today because assignment has unit type and asserting unit equality is pointless.",
  "title": "Change error message of a failing `assert_eq!`"
}