maelstrom icon indicating copy to clipboard operation
maelstrom copied to clipboard

Build Failed

Open MomentQYC opened this issue 2 years ago • 0 comments

I'm ran cargo run -- release on Ubuntu 18.04, but it failed. It shows a series of errors! There're parts of it:

1259 |     let rem = n % bits;
     |                 ^ no implementation for `usize % u32`
     |
     = help: the trait `Rem<u32>` is not implemented for `usize`

error[E0308]: mismatched types
    --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lexical-core-0.6.2/src/atof/algorithm/math.rs:1260:19
     |
1260 |     let div = n / bits;
     |                   ^^^^ expected `usize`, found `u32`

error[E0277]: cannot divide `usize` by `u32`
    --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/lexical-core-0.6.2/src/atof/algorithm/math.rs:1260:17
     |
1260 |     let div = n / bits;
     |                 ^ no implementation for `usize / u32`
     |
     = help: the trait `Div<u32>` is not implemented for `usize`

Some errors have detailed explanations: E0277, E0308.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `lexical-core` due to 27 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed

MomentQYC avatar Mar 29 '22 00:03 MomentQYC