2018-12-25 08:56:47 -07:00
error[E0271]: type mismatch resolving `<std::iter::TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:6:39: 9:6 found_e:_]> as std::iter::Iterator>::Item == &_`
--> $DIR/issue-31173.rs:10:10
2018-07-15 14:11:54 -07:00
|
LL | .cloned()
| ^^^^^^ expected u8, found reference
|
2019-11-13 14:16:56 -08:00
= note: expected type `u8`
found reference `&_`
2018-07-15 14:11:54 -07:00
2018-12-25 08:56:47 -07:00
error[E0599]: no method named `collect` found for type `std::iter::Cloned<std::iter::TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:6:39: 9:6 found_e:_]>>` in the current scope
--> $DIR/issue-31173.rs:14:10
2018-07-15 14:11:54 -07:00
|
2019-03-09 15:03:44 +03:00
LL | .collect();
2019-09-06 12:00:07 -07:00
| ^^^^^^^ method not found in `std::iter::Cloned<std::iter::TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:6:39: 9:6 found_e:_]>>`
2018-07-15 14:11:54 -07:00
|
= note: the method `collect` exists but the following trait bounds were not satisfied:
2018-12-25 08:56:47 -07:00
`&mut std::iter::Cloned<std::iter::TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:6:39: 9:6 found_e:_]>> : std::iter::Iterator`
`std::iter::Cloned<std::iter::TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:6:39: 9:6 found_e:_]>> : std::iter::Iterator`
2018-07-15 14:11:54 -07:00
error: aborting due to 2 previous errors
2019-04-17 13:26:38 -04:00
Some errors have detailed explanations: E0271, E0599.
2018-07-15 14:11:54 -07:00
For more information about an error, try `rustc --explain E0271`.