Closed RaitoBezarius closed 2 months ago
This error comes from the mutable borrow in a closure: this uses a special type of borrow MutBorrowKind::ClosureCapture
which we'll have to support. Thanks for the report!
Minimized:
struct Rng;
impl Rng {
fn next_u64(&mut self) {}
}
fn new(rng: &mut Rng) {
let _ = || {
rng.next_u64();
};
}
Which changes in Charon were required to support this?
Thanks!
Code snippet to reproduce the bug:
Charon version: 962f26311ccdf09a6a3cfeacbccafba22bf3d405
Charon command:
nix run "github:AeneasVerif/aeneas/b1ca1ff00c15a550eab385d58306697a4a68d674#charon"
Charon output:
Any other steps needed to reproduce:
Explain the bug: N/A.