Skip to content

Instantly share code, notes, and snippets.

@amcsi
Created May 8, 2018 15:49
Show Gist options
  • Save amcsi/9b66c77863c08875b0d153ed8fa8b4e6 to your computer and use it in GitHub Desktop.
Save amcsi/9b66c77863c08875b0d153ed8fa8b4e6 to your computer and use it in GitHub Desktop.
C:/Users/attila/.cargo/bin/cargo.exe run
Compiling password-cracker v0.1.0 (file:///C:/0/quick/password-cracker)
warning: unused import: `std::ops::Range`
--> src\main.rs:5:5
|
5 | use std::ops::Range;
| ^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default
warning: unused import: `rayon::range::Iter`
--> src\main.rs:6:5
|
6 | use rayon::range::Iter;
| ^^^^^^^^^^^^^^^^^^
error[E0599]: no method named `into_par_iter` found for type `std::ops::RangeFrom<u64>` in the current scope
--> src\main.rs:89:41
|
89 | let found_string_index = ((0u64)..).into_par_iter().find_first(|i: u64| -> bool {
| ^^^^^^^^^^^^^
|
= note: the method `into_par_iter` exists but the following trait bounds were not satisfied:
`std::ops::RangeFrom<u64> : rayon::iter::IntoParallelIterator`
`&std::ops::RangeFrom<u64> : rayon::iter::IntoParallelIterator`
`&mut std::ops::RangeFrom<u64> : rayon::iter::IntoParallelIterator`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0599`.
error: Could not compile `password-cracker`.
To learn more, run the command again with --verbose.
Process finished with exit code 101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment