Lazy @rustlang Twitter: can you send me snippets of code where you *needed* higher kinded lifetimes?
I wish to identify as many cases as possible to categorize them and make rustc understand them and guide you in their direction.
-
-
https://doc.rust-lang.org/reference/trait-bounds.html#higher-ranked-trait-bounds … https://doc.rust-lang.org/nomicon/hrtb.html … https://stackoverflow.com/questions/35592750/how-does-for-syntax-differ-from-a-regular-lifetime-bound … It's the `for<'a> fn(&'a T) -> &'a K` syntax, so that you can pass around closures that have borrows that are related to its inputs, but detached to the current Item context.
-
This is exactly why I want rustc to understand them, because their need comes up rarely enough that few people *know* about them, but when you need them you *need* them.
- Još 2 druga odgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.

