{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreie5x2tqdbqfhrar3h7tok47pvhucpma7wqoetx6tmfofq26q4f54e",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mo5tdd65fcj2"
},
"path": "/t/add-new-reserved-lifetime-owned/24129#post_13",
"publishedAt": "2026-06-13T07:48:12.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "Voldemat:\n\n> Because right now &'buffer str -> &'static str and &'buffer str -> String are identical to the borrow checker, but it is incorrect, because in first case it is invalid since generic 'buffer does not outlive 'static, while in second case 'buffer could be any lifetime since String makes a copy and does not hold any references to previous structures.\n\nEither you assume you can make a copy, and hence `&'buffer str -> &'static str` is also possible, or you don't assume you can make a copy, and hence `&'buffer str -> String` is a type error because the two types are different.",
"title": "Add new reserved lifetime: 'owned"
}