Nullus157 / cbor-diag-rs

Support for parsing/encoding CBOR diagnostic notation and annotated hex
https://cbor.nemo157.com
Apache License 2.0
10 stars 6 forks source link

Compile error when installing cbor-diag-cli #128

Closed inf265 closed 2 years ago

inf265 commented 2 years ago

Hi, I am new to rust but want to use the cbor-diag-cli. When using the cargo command to install I get a buch of errors of the same category:

error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position
   --> /home/fmetz/.cargo/registry/src/github.com-1ecc6299db9ec823/cbor-diag-0.1.11/src/encode/hex.rs:506:27
    |
506 |             typed_array::<1>(context, value, "unsigned", |[byte]| byte.to_string())
    |                           ^ explicit generic argument not allowed
    |
    = note: see issue #83701 <https://github.com/rust-lang/rust/issues/83701> for more information

Any help ? Best Regards Fréd

Nemo157 commented 2 years ago

It looks like you're using an outdated compiler, that was stabilized in 1.63. You can updated with rustup update (or, if you're using the system rust on a distro like Debian that does not ship up-to-date compilers you'll have to install rustup).

inf265 commented 2 years ago

Thanks great I was on 1.59, updated to 1.6x and now it runs. Thank you.