{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiggzzbjyxvaqep2ch3cz37lqhdlvg4nmmcli5qq6zbbv3pokfd6k4",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mgrvcuoj6ae2"
},
"path": "/t/pre-feature-request-suppress-unused-variable-warning-for-unit-type-arguments/24065#post_7",
"publishedAt": "2026-03-11T03:08:18.000Z",
"site": "https://internals.rust-lang.org",
"tags": [
"`impl Args for ()`"
],
"textContent": "georgebarwood:\n\n> I think it is better to keep the warning, rather than have special cases\n\nThere is a lot of value in having warnings be precise. Noisy warnings only justify false positives if the true positives commonly identify real bugs.\n\nIn this case there seems to be a lot of speculation that the warned case is ambiguous. I don't know either way. I do know that clap already has an `impl Args for ()`, but `args: ()` still fires the warning. Could it be relaxed in that specific case?",
"title": "Pre-feature request: suppress unused variable warning for unit-type arguments"
}