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
error[E0605]: non-primitive cast: `i32` as `asmx86::SegmentRegister`
--> src/asmx86.rs:10645:42
|
10645 | (*(*state).result).segment = (SegmentRegister::SEG_ES as (i32) +
| __________________________________________^
10646 | | (prefix as (i32) - 0x60i32)) as
10647 | | (SegmentRegister);
| |_________________________________^
|
= note: an `as` expression can only be used to convert between primitive types. Consider using the `From` trait
Fixing this would require having some code generated that allows converting an integer back to the enum value.
The text was updated successfully, but these errors were encountered:
This Rust gets generated:
And unfortunately, that's not valid:
Fixing this would require having some code generated that allows converting an integer back to the enum value.
The text was updated successfully, but these errors were encountered: