@@ -302,38 +302,38 @@ error[E0277]: the trait bound `Option<{integer}>: IntoPropValue<Option<Cow<'stat
302302 <Option<String> as IntoPropValue<Option<Cow<'static, str>>>>
303303 = note: required by `into_prop_value`
304304
305- error[E0277]: the trait bound `{integer}: IntoPropValue<Option<yew::Callback< MouseEvent>>>` is not satisfied
305+ error[E0277]: expected a `Fn<( MouseEvent,)>` closure, found `{integer}`
306306 --> $DIR/element-fail.rs:51:29
307307 |
30830851 | html! { <input on:click=1 /> };
309- | ^ the trait `IntoPropValue<Option<yew::Callback< MouseEvent>>>` is not implemented for `{integer}`
309+ | ^ expected an `Fn<( MouseEvent,)>` closure, found `{integer}`
310310 |
311- = help: the following implementations were found:
312- <&'static str as IntoPropValue<Cow<'static, str>>>
313- <&'static str as IntoPropValue<Option<Cow<'static, str>>>>
314- <&'static str as IntoPropValue<Option<String>>>
315- <&'static str as IntoPropValue<String>>
316- and 11 others
311+ = help: the trait `Fn<(MouseEvent,)>` is not implemented for `{integer}`
312+ = note: required because of the requirements on the impl of `IntoEventCallback<MouseEvent>` for `{integer}`
317313 = note: required by `Wrapper::<T>::__macro_new`
318314
319- error[E0277]: the trait bound `yew::Callback<String>: IntoPropValue<Option< yew::Callback<MouseEvent>>>` is not satisfied
315+ error[E0277]: expected a `Fn<(MouseEvent,)>` closure, found ` yew::Callback<String>`
320316 --> $DIR/element-fail.rs:52:30
321317 |
32231852 | html! { <input on:click={Callback::from(|a: String| ())} /> };
323- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoPropValue<Option<yew::Callback<MouseEvent>>>` is not implemented for `yew::Callback<String>`
319+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
320+ | |
321+ | expected an implementor of trait `IntoEventCallback<MouseEvent>`
322+ | help: consider borrowing here: `&Callback::from(|a: String| ())`
324323 |
324+ = note: the trait bound `yew::Callback<String>: IntoEventCallback<MouseEvent>` is not satisfied
325+ = note: required because of the requirements on the impl of `IntoEventCallback<MouseEvent>` for `yew::Callback<String>`
325326 = note: required by `Wrapper::<T>::__macro_new`
326327
327- error[E0277]: the trait bound `Option<{integer}>: IntoPropValue<Option<yew::Callback< FocusEvent>> >` is not satisfied
328+ error[E0277]: the trait bound `Option<{integer}>: IntoEventCallback< FocusEvent>` is not satisfied
328329 --> $DIR/element-fail.rs:53:30
329330 |
33033153 | html! { <input on:focus={Some(5)} /> };
331- | ^^^^^^^ the trait `IntoPropValue<Option<yew::Callback< FocusEvent>> >` is not implemented for `Option<{integer}>`
332+ | ^^^^^^^ the trait `IntoEventCallback< FocusEvent>` is not implemented for `Option<{integer}>`
332333 |
333334 = help: the following implementations were found:
334- <Option<&'static str> as IntoPropValue<Option<Cow<'static, str>>>>
335- <Option<&'static str> as IntoPropValue<Option<String>>>
336- <Option<String> as IntoPropValue<Option<Cow<'static, str>>>>
335+ <Option<T> as IntoEventCallback<EVENT>>
336+ <Option<yew::Callback<EVENT>> as IntoEventCallback<EVENT>>
337337 = note: required by `Wrapper::<T>::__macro_new`
338338
339339error[E0277]: the trait bound `(): IntoPropValue<yew::NodeRef>` is not satisfied
@@ -356,12 +356,17 @@ error[E0277]: the trait bound `Option<yew::NodeRef>: IntoPropValue<yew::NodeRef>
356356 <Option<String> as IntoPropValue<Option<Cow<'static, str>>>>
357357 = note: required by `into_prop_value`
358358
359- error[E0277]: the trait bound `yew::Callback<String>: IntoPropValue<Option< yew::Callback<MouseEvent>>>` is not satisfied
359+ error[E0277]: expected a `Fn<(MouseEvent,)>` closure, found ` yew::Callback<String>`
360360 --> $DIR/element-fail.rs:58:30
361361 |
36236258 | html! { <input on:click={Callback::from(|a: String| ())} /> };
363- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoPropValue<Option<yew::Callback<MouseEvent>>>` is not implemented for `yew::Callback<String>`
363+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
364+ | |
365+ | expected an implementor of trait `IntoEventCallback<MouseEvent>`
366+ | help: consider borrowing here: `&Callback::from(|a: String| ())`
364367 |
368+ = note: the trait bound `yew::Callback<String>: IntoEventCallback<MouseEvent>` is not satisfied
369+ = note: required because of the requirements on the impl of `IntoEventCallback<MouseEvent>` for `yew::Callback<String>`
365370 = note: required by `Wrapper::<T>::__macro_new`
366371
367372error[E0277]: the trait bound `NotToString: IntoPropValue<Option<Cow<'static, str>>>` is not satisfied
0 commit comments