Skip to content

Error Compiling dependency jetscii  #51

Description

@mmogib

When I added docx = 1.1.2 to my project, the following error appears

   Compiling jetscii v0.4.4
error: generic parameters may not be used in const operations
   --> C:\Users\mmogi\.cargo\registry\src\github.com-1ecc6299db9ec823\jetscii-0.4.4\src\simd.rs:109:13
    |
109 |             T::CONTROL_BYTE,
    |             ^^^^^^^^^^^^^^^ cannot perform const operation using `T`
    |
    = note: type parameters may not be used in const expressions

error: generic parameters may not be used in const operations
   --> C:\Users\mmogi\.cargo\registry\src\github.com-1ecc6299db9ec823\jetscii-0.4.4\src\simd.rs:148:13
    |
148 |             T::CONTROL_BYTE,
    |             ^^^^^^^^^^^^^^^ cannot perform const operation using `T`
    |
    = note: type parameters may not be used in const expressions

error: could not compile `jetscii` due to 2 previous errors

When I remove docx= 1.1.2, my project compiles with no error. docx depends on jetscii which seems to be the source of the error.

FYI: rustc 1.61.0 (fe5b13d68 2022-05-18)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions