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
error[E0525]: expected a closure that implements the `Fn` trait, but this closure only implements `FnMut`
--> ~/.cargo/registry/src/github.com-1ecc6299db9ec823/ncollide3d-0.18.1/src/transformation/hacd.rs:745:47
|
745 | let mut add_triangle_edges = Box::new(|i: usize, t: &Point3<u32>| {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ this closure implements `FnMut`, not `Fn`
...
749 | let other = match prim_edges.entry(*e) {
| ---------- closure is `FnMut` because it mutates the variable `prim_edges` here
...
765 | add_triangle_edges(i, t)
| ------------------------ the requirement to implement `Fn` derives from here
error: aborting due to previous error
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to compile with the last rust.
To Reproduce
The text was updated successfully, but these errors were encountered: