You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempted a bad fix but it's probably not going to work.
The problem is that evaluating g wants to borrow x when printing, but it also hold a mutable borrow to x. I fixed this implementation but there are also implication for this case.
let x = %{0: 0};
let g = fn(a, b) { print(x); a + b };
x[0] g= 3;
which errors like this:
thread 'main' panicked at src/interpreter/sequence.rs:89:33:
already mutably borrowed: BorrowError
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
outputs:
The text was updated successfully, but these errors were encountered: