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

Windows Only Compiler Bug! #1

Open
icf3ver opened this issue Oct 22, 2021 · 0 comments
Open

Windows Only Compiler Bug! #1

icf3ver opened this issue Oct 22, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@icf3ver
Copy link
Owner

icf3ver commented Oct 22, 2021

Windows Compiler error (This does not happen on linux or macos)

error[E0477]: the type `feo_oop_engine::event::UserEvent<Arc<dyn Any + Send + Sync>>` does not fulfill the required lifetime
  --> examples\src\bin\example_game\scr\player.rs:73:1
   |
73 | #[macro_rules_attribute(frame_script!)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: type must satisfy the static lifetime
   = note: this error originates in the macro `frame_script` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0477`.
error: could not compile `examples` due to previous error

Code in question:

x.send_event(UserEvent::WinitEvent(Event::WindowEvent{ window_id, event: WindowEvent::CloseRequested})).unwrap();
@icf3ver icf3ver self-assigned this Oct 28, 2021
@icf3ver icf3ver added the bug Something isn't working label Oct 28, 2021
@icf3ver icf3ver changed the title Windows Only: Windows Only Compiler Bug! Nov 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant