Closed henrikssn closed 3 years ago
Thanks for the bug report!
Unfortunately I (again) cannot reproduce this since I am missing information about:
rustc
versioncargo build
?lib.rs
deny
, forbid
warning level etc.ModemMode
requires 3 bits, right?From this answer I guess we could fix this by using some parentheses. Please confirm! https://stackoverflow.com/a/51072034/1849963
@henrikssn Please see if this revision of modular_bitfield
works for you: https://github.com/Robbepop/modular-bitfield/commit/9f805c8087782b546d765934d41634f06e3d1edf
Seems like I was using edition 2015, upgrading to 2018 compiles fine at current HEAD (fb37b66). I can't get it to compile at 0.10.0 though but I'll just wait for next version :)
I can also confirm 9f805c8 solves the compilation issue on edition 2015.
Okay thanks a lot for the confirmation. Closed then.
This code does not compile in 0.10.0
Suspicion: https://stackoverflow.com/questions/51071925/error-e0433-when-dyn-used-with-absolute-path https://github.com/Robbepop/modular-bitfield/blob/b9708ee98cf14d671bab58cf1f2b0b57dec047e0/impl/src/bitfield/expand.rs#L133