error[E0282]: type annotations needed for `point::Point<point_type::EvenY, S>`
--> /home/test/.cargo/registry/src/index.crates.io-6f17d22bba15001f/secp256kfun-0.8.2/src/point.rs:510:45
|
510 | Point::from_xonly_bytes(bytes).map(|p| p.set_secrecy::<S>())
| ------------------------------ ^
| |
| type must be known at this point
|
help: consider giving this closure parameter an explicit type, where the type for type parameter `S` is specified
|
510 | Point::from_xonly_bytes(bytes).map(|p: point::Point<point_type::EvenY, S>| p.set_secrecy::<S>())
| ++++++++++++++++++++++++++++++++++++
error[E0282]: type annotations needed for `point::Point<point_type::EvenY, S>`
--> /home/test/.cargo/registry/src/index.crates.io-6f17d22bba15001f/secp256kfun-0.8.2/src/point.rs:510:45
|
510 | Point::from_xonly_bytes(bytes).map(|p| p.set_secrecy::<S>())
| ^
|
help: consider giving this closure parameter an explicit type, where the type for type parameter `S` is specified
|
510 | Point::from_xonly_bytes(bytes).map(|p: point::Point<point_type::EvenY, S>| p.set_secrecy::<S>())
| ++++++++++++++++++++++++++++++++++++
error[E0282]: type annotations needed for `scalar::Scalar<S, zero_choice::Zero>`
--> /home/test/.cargo/registry/src/index.crates.io-6f17d22bba15001f/secp256kfun-0.8.2/src/scalar.rs:302:45
|
302 | Scalar::from_bytes(bytes).and_then(|scalar| scalar.set_secrecy::<S>().non_zero())
| ^^^^^^
|
help: consider giving this closure parameter an explicit type, where the type for type parameter `S` is specified
|
302 | Scalar::from_bytes(bytes).and_then(|scalar: scalar::Scalar<S, zero_choice::Zero>| scalar.set_secrecy::<S>().non_zero())
| ++++++++++++++++++++++++++++++++++++++
error[E0282]: type annotations needed for `scalar::Scalar<S, zero_choice::Zero>`
--> /home/test/.cargo/registry/src/index.crates.io-6f17d22bba15001f/secp256kfun-0.8.2/src/scalar.rs:315:40
|
315 | Scalar::from_bytes(bytes).map(|scalar| scalar.set_secrecy::<S>())
| ^^^^^^
|
help: consider giving this closure parameter an explicit type, where the type for type parameter `S` is specified
|
315 | Scalar::from_bytes(bytes).map(|scalar: scalar::Scalar<S, zero_choice::Zero>| scalar.set_secrecy::<S>())
| ++++++++++++++++++++++++++++++++++++++
For more information about this error, try `rustc --explain E0282`.
error: could not compile `secp256kfun` (lib) due to 4 previous errors