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[E0507]: cannot move out of `item1.list2` which is behind a shared reference
--> src/main.rs:3:10
|
3 | #[derive(Template)]
| ^^^^^^^^ move occurs because `item1.list2` has type `Vec<Box<dyn MyTrait + Send>>`, which does not implement the `Copy` trait
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
As a workaround, it should work if you change item1.list2 to item1.list2.iter(). However, I'll look into why that fails, as right now I don't recall the reason why it would fail.
I got this error with
main
but not with0.10.5
.Cargo.toml
main.rs
template.txt
Feel free to rename the issue.
The text was updated successfully, but these errors were encountered: