When the generated code passes a (which has Rust type Mutable<[i32, 3]>) to steal, a is not cloned.
Making an issue because the error is surprisingly hard to fix elegantly. Can be quickly patched but that would likely cause other problems in "weird" contexts like seed generation. May involve this fix.
Reported in Discord.
The problem is that clones aren't being added in the right spots. Sample code that triggers the error:
When the generated code passes
a
(which has Rust typeMutable<[i32, 3]>
) tosteal
,a
is not cloned.Making an issue because the error is surprisingly hard to fix elegantly. Can be quickly patched but that would likely cause other problems in "weird" contexts like seed generation. May involve this fix.