Compiling yew-tuto v0.1.0 (/home/user/soft/rustweb/yew-tuto)
error[E0277]: the trait bound `Vec<Video>: ImplicitClone` is not satisfied
--> src/main.rs:16:16
|
14 | #[autoprops]
| ------------ required by a bound introduced by this call
15 | #[function_component(VideosList)]
16 | fn videos_list(videos: Vec<Video>, on_click: Callback<Video>) -> Html {
| ^^^^^^ the trait `ImplicitClone` is not implemented for `Vec<Video>`
|
help: consider borrowing here
|
16 | fn videos_list(&videos: Vec<Video>, on_click: Callback<Video>) -> Html {
| +
For more information about this error, try `rustc --explain E0277`.
This produces a syntax error, a more correct suggestion would be videos: &Vec<Video>.
On the
yew
tutorial, starting from this working state I tried this change:This resulted in this build error:
This produces a syntax error, a more correct suggestion would be
videos: &Vec<Video>
.Meta
Backtrace
no backtrace: ``` user@perso-dev:yew-tuto (yew-autoprops)$ RUST_BACKTRACE=1 cargo build --target=wasm32-unknown-unknown Compiling yew-tuto v0.1.0 (/home/user/soft/rustweb/yew-tuto) error[E0277]: the trait bound `Vec