rust/src/test/ui/issues/issue-31173.stderr

24 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0271]: type mismatch resolving `<std::iter::TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:16:39: 19:6 found_e:_]> as std::iter::Iterator>::Item == &_`
--> $DIR/issue-31173.rs:20:10
|
LL | .cloned()
| ^^^^^^ expected u8, found reference
|
= note: expected type `u8`
found type `&_`
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:16:39: 19:6 found_e:_]>>` in the current scope
--> $DIR/issue-31173.rs:24:10
|
LL | .collect(); //~ ERROR no method named `collect`
| ^^^^^^^
|
= note: the method `collect` exists but the following trait bounds were not satisfied:
`&mut std::iter::Cloned<std::iter::TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:16:39: 19:6 found_e:_]>> : std::iter::Iterator`
2018-12-12 17:58:27 -06:00
`std::iter::Cloned<std::iter::TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:16:39: 19:6 found_e:_]>> : std::iter::Iterator`
2018-07-15 16:11:54 -05:00
error: aborting due to 2 previous errors
Some errors occurred: E0271, E0599.
For more information about an error, try `rustc --explain E0271`.