Skip to content

Windows Only Compiler Bug! #1

@icf3ver

Description

@icf3ver

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();

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions