{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreigry5cewjen6uh55konkemnrup5qrqh5vj3dklv3tunqwte3wwniy",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mg55pju5mhg2"
},
"path": "/t/subset-enums/24048#post_10",
"publishedAt": "2026-03-03T04:44:27.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "DidingasLushis:\n\n> Based on the syntax supported by pattern types (when they emerge) would my example be re-worked to be like:\n\n\n type MyErrorSubset = MyError is MyError::NotFound | MyError::PermissionDenied;\n // or in an even brighter future...\n type MyErrorSubset = MyError is _::NotFound | _::PermissionDenied;\n",
"title": "Subset enums"
}