Created
February 25, 2019 17:17
-
-
Save hpk42/78acd6415d580329a8821d96cd61e9ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0277]: the trait bound `rand_core::Error: std::convert::From<rand_os::rand_core::Error>` is not satisfied | |
--> /home/hpk/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.2/src/rngs/entropy.rs:233:23 | |
| | |
233 | let mut rng = rngs::OsRng::new()?; | |
| ^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<rand_os::rand_core::Error>` is not implemented for `rand_core::Error` | |
| | |
= help: the following implementations were found: | |
<rand_core::Error as std::convert::From<rngs::jitter::TimerError>> | |
= note: required by `std::convert::From::from` | |
error[E0599]: no method named `try_fill_bytes` found for type `rand_os::OsRng` in the current scope | |
--> /home/hpk/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.2/src/rngs/entropy.rs:234:13 | |
| | |
234 | rng.try_fill_bytes(dest)?; | |
| ^^^^^^^^^^^^^^ | |
| | |
= help: items from traits can only be used if the trait is in scope | |
= note: the following trait is implemented but not in scope, perhaps add a `use` for it: | |
`use rand_os::rand_core::RngCore;` | |
error[E0599]: no method named `try_fill_bytes` found for type `rand_os::OsRng` in the current scope | |
--> /home/hpk/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.2/src/rngs/entropy.rs:239:16 | |
| | |
239 | self.0.try_fill_bytes(dest) | |
| ^^^^^^^^^^^^^^ | |
| | |
= help: items from traits can only be used if the trait is in scope | |
= note: the following trait is implemented but not in scope, perhaps add a `use` for it: | |
`use rand_os::rand_core::RngCore;` | |
error[E0599]: no method named `next_u32` found for type `rand_os::OsRng` in the current scope | |
--> /home/hpk/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.2/src/deprecated.rs:336:16 | |
| | |
336 | self.0.next_u32() | |
| ^^^^^^^^ | |
| | |
= help: items from traits can only be used if the trait is in scope | |
= note: the following trait is implemented but not in scope, perhaps add a `use` for it: | |
`use rand_os::rand_core::RngCore;` | |
error[E0599]: no method named `next_u64` found for type `rand_os::OsRng` in the current scope | |
--> /home/hpk/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.2/src/deprecated.rs:341:16 | |
| | |
341 | self.0.next_u64() | |
| ^^^^^^^^ | |
| | |
= help: items from traits can only be used if the trait is in scope | |
= note: the following trait is implemented but not in scope, perhaps add a `use` for it: | |
`use rand_os::rand_core::RngCore;` | |
error[E0599]: no method named `fill_bytes` found for type `rand_os::OsRng` in the current scope | |
--> /home/hpk/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.2/src/deprecated.rs:346:16 | |
| | |
346 | self.0.fill_bytes(dest); | |
| ^^^^^^^^^^ | |
| | |
= help: items from traits can only be used if the trait is in scope | |
= note: the following trait is implemented but not in scope, perhaps add a `use` for it: | |
`use rand_os::rand_core::RngCore;` | |
error[E0599]: no method named `try_fill_bytes` found for type `rand_os::OsRng` in the current scope | |
--> /home/hpk/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.2/src/deprecated.rs:351:16 | |
| | |
351 | self.0.try_fill_bytes(dest) | |
| ^^^^^^^^^^^^^^ | |
| | |
= help: items from traits can only be used if the trait is in scope | |
= note: the following trait is implemented but not in scope, perhaps add a `use` for it: | |
`use rand_os::rand_core::RngCore;` | |
error[E0308]: mismatched types | |
--> /home/hpk/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.2/src/deprecated.rs:375:9 | |
| | |
374 | pub fn new() -> Result<Self, Error> { | |
| ------------------- expected `std::result::Result<deprecated::OsRng, rand_core::Error>` because of return type | |
375 | rngs::OsRng::new().map(OsRng) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `rand_core::Error`, found struct `rand_os::rand_core::Error` | |
| | |
= note: expected type `std::result::Result<_, rand_core::Error>` | |
found type `std::result::Result<_, rand_os::rand_core::Error>` | |
note: Perhaps two different versions of crate `rand_core` are being used? | |
--> /home/hpk/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.2/src/deprecated.rs:375:9 | |
| | |
375 | rngs::OsRng::new().map(OsRng) | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: aborting due to 8 previous errors | |
Some errors occurred: E0277, E0308, E0599. | |
For more information about an error, try `rustc --explain E0277`. | |
error: Could not compile `rand`. | |
warning: build failed, waiting for other jobs to finish... | |
error: build failed | |
Makefile:36: recipe for target 'build' failed | |
make: *** [build] Error 101 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment