{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreifbezk7atxc2mron3xmvxtde6tpds2wulgbyectzr2zgfrebecrgq",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mj5ed7abq4i2"
},
"path": "/t/change-error-message-of-a-failing-assert-eq/24118?page=2#post_32",
"publishedAt": "2026-04-10T06:42:03.000Z",
"site": "https://internals.rust-lang.org",
"tags": [
"already get printed today"
],
"textContent": "CodesInChaos:\n\n> It's not clear if `XXX`/`YYY` in your post is supposed to be the value of the argument or its name. But since you invoked it without specifying a name, I assumed that it's supposed to be the debug representation of the value.\n>\n> What are `XXX` supposed to be?\n\nThey are indeed the debug representation of the arguments. Those already get printed today. The macro _already_ requires the types of the arguments to implement `Debug`. The only thing that's new in their proposal is the part before, the \"assert some_object.array[i] == Some(\"foo\") failed\" part.\n\nPlease check your assumptions before making claims.",
"title": "Change error message of a failing `assert_eq!`"
}