5 ms·
There is some experimental work for that here I believe: https://doc.rust-lang.org/beta/unstable-book/language-features/super-let.html https://doc.rust-lang.or
by janquo 9mo ago
There is some experimental work for that here I believe:
https://doc.rust-lang.org/beta/unstable-book/language-features/super-let.html https://doc.rust-lang.org/beta/unstable-book/language-featur...
AFAIU it essentially creates a variable in inner scope but defers drop to the outer scope so that you can return the reference