42 lines
1.9 KiB
Plaintext
42 lines
1.9 KiB
Plaintext
Checking mdo v0.1.0 (/home/malxte/Documents/Programming/Plattforms/Dioxus/mdo)
|
|
error[E0277]: the trait bound `ListenerCallback<MouseData>: SuperFrom<(), _>` is not satisfied
|
|
--> src/ui.rs:14:31
|
|
|
|
|
14 | button { onclick: add_todo(tocontent) }
|
|
| -----------------^^^^^^^^^^^
|
|
| | |
|
|
| | the trait `SuperFrom<(), _>` is not implemented for `ListenerCallback<MouseData>`
|
|
| required by a bound introduced by this call
|
|
|
|
|
= help: the following other types implement trait `SuperFrom<T, M>`:
|
|
`ListenerCallback<T>` implements `SuperFrom<Callback<dioxus::prelude::Event<T>>>`
|
|
`ListenerCallback<T>` implements `SuperFrom<Function, MarkerWrapper<Marker>>`
|
|
= note: required for `()` to implement `SuperInto<ListenerCallback<MouseData>, _>`
|
|
note: required by a bound in `onclick`
|
|
--> /home/malxte/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/dioxus-html-0.7.2/src/events/mouse.rs:47:1
|
|
|
|
|
47 | / impl_event! {
|
|
48 | | MouseData;
|
|
49 | |
|
|
50 | | /// Execute a callback when a button is clicked.
|
|
... |
|
|
73 | | onclick
|
|
| | ------- required by a bound in this function
|
|
... |
|
|
104 | | onmouseup
|
|
105 | | }
|
|
| |_^ required by this bound in `onclick`
|
|
= note: this error originates in the macro `impl_event` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
warning: unused variable: `tocontent`
|
|
--> src/ui.rs:34:13
|
|
|
|
|
34 | fn add_todo(tocontent: String) {}
|
|
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tocontent`
|
|
|
|
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|
|
warning: `mdo` (bin "mdo") generated 1 warning
|
|
error: could not compile `mdo` (bin "mdo") due to 1 previous error; 1 warning emitted
|