rtic/ui/lockall_move_out_field.stderr
2021-11-03 10:07:10 +01:00

5 lines
298 B
Text

error[E0507]: cannot move out of `s.a` which is behind a mutable reference
--> ui/lockall_move_out_field.rs:22:35
|
22 | let _ = c.shared.lock(|s| s.a);
| ^^^ move occurs because `s.a` has type `&mut u32`, which does not implement the `Copy` trait