Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: could not compile panoramix due to 5 previous errors: on windows #2

Open
RagibHasin opened this issue Mar 31, 2022 · 0 comments

Comments

@RagibHasin
Copy link

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: 076191f
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant