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

Trying to use new_bitfield_N in static #3125

Open
NickeZ opened this issue Feb 10, 2025 · 0 comments
Open

Trying to use new_bitfield_N in static #3125

NickeZ opened this issue Feb 10, 2025 · 0 comments

Comments

@NickeZ
Copy link

NickeZ commented Feb 10, 2025

Hi!

I'm trying to use new_bitfield_N in a static. Is there a reason that the generated constructor isn't const?

error[E0015]: cannot call non-const fn `security_configuration::new_bitfield_1` in statics
   --> src/app_impl.rs:135:22
    |
135 |           _bitfield_1: da14531_sdk::bindings::security_configuration::new_bitfield_1(
    |  ______________________^
136 | |             gap_io_cap_GAP_IO_CAP_DISPLAY_YES_NO,
137 | |             gap_oob_GAP_OOB_AUTH_DATA_NOT_PRESENT,
138 | |         ),
    | |_________^

Regards

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