External Publication
Visit Post

Add new reserved lifetime: 'owned

Rust Internals [Unofficial] June 12, 2026
Source

The first case could do &'buffer str -> &'static str by copying it into a String and then calling String::leak.

Why should it be different from the second from the borrow checker’s perspective?

Discussion in the ATmosphere

Loading comments...