@lukaswirth.devLukas Wirth @lukaswirth.dev
2026-06-25 10:54 UTC
Because being explicit about the parameter types changes the lifetime inference entirely, the compiler doesn't know that though. This is one of the fun inference quirks with closures. Unfortunately this trick only works reference types, hence github.com/rust-lang/ru...
Link: Tracking Issue for RFC 3216: "Allow using `for<'a>` syntax when declaring closures" · Issue #97362 … (github.com/rust-lang/rust/issues/97362)
A reply in a thread.
7 likes, 0 reposts, 0 replies
3 Next post4 More from @lukaswirth.devBackBluesky home