Compiling turkos-os-asid-barrier v0.1.0 (/os-asid-barrier) error[E0502]: cannot borrow `h[_]` as mutable because it is also borrowed as immutable --> tests/barrier.rs:39:784 | 39 | ...1].e.asid,127);h[1].fail=false;p.detach(&h[0],active.leave(&mut h[1]).unwrap()).unwrap(); | ------ ----- ^^^^^^^^^ mutable borrow occurs here | | | | | immutable borrow occurs here | immutable borrow later used by call | = help: use `.split_at_mut(position)` to obtain two mutable non-overlapping sub-slices error[E0502]: cannot borrow `h[_]` as mutable because it is also borrowed as immutable --> tests/barrier.rs:42:523 | 42 | ...);assert_eq!(e,Error::Context);p.detach(&h[0],active.leave(&mut h[1]).unwrap()).unwrap(); | ------ ----- ^^^^^^^^^ mutable borrow occurs here | | | | | immutable borrow occurs here | immutable borrow later used by call | = help: use `.split_at_mut(position)` to obtain two mutable non-overlapping sub-slices For more information about this error, try `rustc --explain E0502`. error: could not compile `turkos-os-asid-barrier` (test "barrier") due to 2 previous errors