Closed CodingJonas closed 3 years ago
You seem to be on Rust <1.45 which is where this was added.
Yes, I had Rust 1.43. The one provided by the Ubuntu official repositories. Upgrading by installing through the rustup script fixed it. Thank you!
Hmm. I'm using rust and cargo 1.48.0, and still hitting this.
AARGH! Wait, no, I'm not. Because of rustup
, even though Fedora 33 is now at 1.48.0, I still have 1.45.0-nightly from 2020-05-09 installed in my $HOME/.cargo/bin/
! :angry:
Yup. After rm
-ing all traces of cargo*
and rust*
from $HOME/.cargo/bin/
, compilation with the system cargo
/rustc
1.48.0 succeeds.
I noticed this issue when trying to build
resvg
, which has this as a dependency. After trying to build this project directly, the error persisted:Am I using a wrong version of Rust? What could be the issue? If it is not already known, I can also take a look at the code to see if I can fix it :)