| ▲ | janquo 2 days ago | |
There is some experimental work for that here I believe: 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 | ||