panoramix
panoramix copied to clipboard
error: could not compile `panoramix` due to 5 previous errors: on windows
Firstly, thanks for another initiative in the GUI field.
The title says the point.
OS: Windows 11 22000.556 Rust version: rustc 1.61.0-nightly (3c17c84a3 2022-03-21) (x86_64-pc-windows-msvc) git commit: 076191fff933964efb95e114acca7fd39f670bb6 Terminal output:
Compiling panoramix v0.0.3 (D:\###\$$$\%%%\panoramix)
error[E0310]: the parameter type `Event` may not live long enough
--> src\elements\any_element.rs:194:31
|
191 | impl<Event: Debug> Clone for ElementBox<Event> {
| ------ help: consider adding an explicit lifetime bound...: `Event: 'static +`
...
194 | child: self.child.dyn_clone(),
| ^^^^^^^^^ ...so that the type `(dyn AnyElement<Event = Event> + 'static)` will meet its required lifetime bounds...
|
note: ...that is required by this bound
--> src\elements\any_element.rs:94:19
|
94 | trait AnyElement: Any + Debug {
| ^^^
error[E0310]: the parameter type `Event` may not live long enough
--> src\elements\any_element.rs:360:20
|
354 | impl<Event: Debug> VirtualDom for VirtualDomBox<Event> {
| ------ help: consider adding an explicit lifetime bound...: `Event: 'static +`
...
360 | self.child.init_tree()
| ^^^^^^^^^ ...so that the type `(dyn AnyVirtualDom<Event = Event> + 'static)` will meet its required lifetime bounds...
|
note: ...that is required by this bound
--> src\elements\any_element.rs:226:26
|
226 | pub trait AnyVirtualDom: Any + Debug {
| ^^^
error[E0310]: the parameter type `Event` may not live long enough
--> src\elements\any_element.rs:369:20
|
354 | impl<Event: Debug> VirtualDom for VirtualDomBox<Event> {
| ------ help: consider adding an explicit lifetime bound...: `Event: 'static +`
...
369 | self.child.reconcile(&prev_value.child, widget_seq, ctx);
| ^^^^^^^^^ ...so that the type `(dyn AnyVirtualDom<Event = Event> + 'static)` will meet its required lifetime bounds...
|
note: ...that is required by this bound
--> src\elements\any_element.rs:226:26
|
226 | pub trait AnyVirtualDom: Any + Debug {
| ^^^
error[E0310]: the parameter type `Event` may not live long enough
--> src\elements\any_element.rs:380:14
|
354 | impl<Event: Debug> VirtualDom for VirtualDomBox<Event> {
| ------ help: consider adding an explicit lifetime bound...: `Event: 'static +`
...
380 | .process_event(comp_ctx, children_state, widget_seq, cx)
| ^^^^^^^^^^^^^ ...so that the type `(dyn AnyVirtualDom<Event = Event> + 'static)` will meet its required lifetime bounds...
|
note: ...that is required by this bound
--> src\elements\any_element.rs:226:26
|
226 | pub trait AnyVirtualDom: Any + Debug {
| ^^^
error[E0310]: the parameter type `Event` may not live long enough
--> src\elements\any_element.rs:390:14
|
354 | impl<Event: Debug> VirtualDom for VirtualDomBox<Event> {
| ------ help: consider adding an explicit lifetime bound...: `Event: 'static +`
...
390 | .process_local_event(children_state, widget_seq, cx)
| ^^^^^^^^^^^^^^^^^^^ ...so that the type `(dyn AnyVirtualDom<Event = Event> + 'static)` will meet its required lifetime bounds...
|
note: ...that is required by this bound
--> src\elements\any_element.rs:226:26
|
226 | pub trait AnyVirtualDom: Any + Debug {
| ^^^
For more information about this error, try `rustc --explain E0310`.
error: could not compile `panoramix` due to 5 previous errors
Wish you best of luck.