rtic/ui/lockall_move_out_field.stderr

6 lines
298 B
Text
Raw Permalink Normal View History

2021-10-26 19:35:41 +02:00
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