You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to develop a plugin for a program, which requires me to export a certain structure which contains a bitfield. When exporting the struct with bitflags I get the following error:
error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
--> src/lib.rs:18:12
|18| flags: PluginFlags::A | PluginFlags::C,
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I would prefer to use this crate over plain constants... Is there a way to solve this?
I need to develop a plugin for a program, which requires me to export a certain structure which contains a bitfield. When exporting the struct with
bitflags
I get the following error:I would prefer to use this crate over plain constants... Is there a way to solve this?
code to reproduce:
The text was updated successfully, but these errors were encountered: