{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreicrchz7kgqulxeey2amk66l5pqptidmtin35xrsbakdnuba3nsoye",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mhzsgftdxe72"
  },
  "path": "/t/pre-rfc-allow-attributes-to-be-applied-to-generic-arguments/24111#post_5",
  "publishedAt": "2026-03-27T03:54:21.000Z",
  "site": "https://internals.rust-lang.org",
  "tags": [
    "custom conditionals"
  ],
  "textContent": "Keep in mind that while features are intended to be additive, not all usage of cfg-attributes has to be. In particular, custom conditionals have no such requirement or implication.\n\nSomething like:\n\n\n    // Note, not #[cfg(feature = \"foo\")]\n    struct Foo<T, #[cfg(foo)] U> {\n        // ..\n    }\n\n\ncould certainly happen in some codebases.",
  "title": "[Pre-RFC] Allow attributes to be applied to generic arguments"
}