Open kenarab opened 4 months ago
This requirement was a consequence of PR #124
Can you try with &mut on the function call and definition?
You are correct, it runs when rewriting to
consume_x(&mut xy);
The first example panics the compiler, it is better if it gives a compilation error than panic.
Changed issue title. Will convert the panic case into a testcase
Lines 474-475 of lib.rs
Changing parameter as non mutable yields an expected error conducting to make the parameter mutable. So this new feature (checking mutable types) should implement mutable parameters for being able to cover borrow checking part of LinearityCheck