Closed
Description
For this error:
error[E0507]: cannot move out of borrowed content
--> file.rs:302:35
|
302 | let c = b.map(|entry| entry.symbol_kind);
| ^^^^^ cannot move out of borrowed contenterror: aborting due to previous error
The compiler could suggest adding #[derive(Copy, Clone)] to the relevant enum. The error message on its own does not offer enough insight on how to fix the problem, from a non-proficient user's POV.