Remix.run Logo
schneems 2 days ago

Wouldn't that also move any referenced variables too? Unlike the block example that would make this code not identical to what it's replacing.

pflanze 2 days ago | parent [-]

No, unless you ask for it via the `move` keyword in front of the closure.

This works fine: https://play.rust-lang.org/?version=stable&mode=debug&editio...