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
I tried to use askama in Docker official rust image but it failed with compile error in bitvec like this.
error[E0034]: multiple applicable items in scope
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.19.4/src/field.rs:307:25
|
307 | check("load", len, M::BITS);
| ^^^^ multiple `BITS` found
|
note: candidate #1 is defined in the trait `BitMemory`
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/bitvec-0.19.4/src/mem.rs:29:2
|
29 | const BITS: u8 = mem::size_of::<Self>() as u8 * 8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait `IsNumber`
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/funty-1.2.0/src/lib.rs:144:2
|
144 | const BITS: u32;
| ^^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #1
|
307 | check("load", len, BitMemory::BITS);
| ^^^^^^^^^^^^^^^
help: disambiguate the associated constant for candidate #2
|
307 | check("load", len, IsNumber::BITS);
| ^^^^^^^^^^^^^^
...
error: aborting due to 43 previous errors
Some errors have detailed explanations: E0034, E0308.
For more information about an error, try `rustc --explain E0034`.
error: could not compile `bitvec`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: aborting due to 43 previous errors
Some errors have detailed explanations: E0034, E0308.
For more information about an error, try `rustc --explain E0034`.
error: build failed
These are Dockerfile and Cargo.toml I tried.
FROM rust:1.50.0
WORKDIR /test
COPY Cargo.toml Cargo.toml
RUN mkdir src && echo "fn main() {}" > src/main.rs
RUN cargo build --release
[package]
name = "test"
version = "0.1.0"
authors = [""]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
askama = "0.10.5"
However, the build succeeds in version 0.9.0 and before.
What is cause of this?
The text was updated successfully, but these errors were encountered:
Hello!
I tried to use askama in Docker official rust image but it failed with compile error in bitvec like this.
These are Dockerfile and Cargo.toml I tried.
However, the build succeeds in version 0.9.0 and before.
What is cause of this?
The text was updated successfully, but these errors were encountered: