2 Compiling rectangles v0.1.0 (file:///projects/rectangles)
3 error[E0507]: cannot move out of `value`, a captured variable in an `FnMut` closure
6 15 | let value = String::from("by key called");
7 | ----- captured outer variable
9 17 | list.sort_by_key(|r| {
10 | ______________________-
11 18 | | sort_operations.push(value);
12 | | ^^^^^ move occurs because `value` has type `String`, which does not implement the `Copy` trait
15 | |_____- captured by this `FnMut` closure
17 For more information about this error, try `rustc --explain E0507`.
18 error: could not compile `rectangles` due to previous error