]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-31173.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-31173.stderr
1 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 == &_`
2   --> $DIR/issue-31173.rs:20:10
3    |
4 LL |         .cloned()
5    |          ^^^^^^ expected u8, found reference
6    |
7    = note: expected type `u8`
8               found type `&_`
9
10 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
11   --> $DIR/issue-31173.rs:24:10
12    |
13 LL |         .collect(); //~ ERROR no method named `collect`
14    |          ^^^^^^^
15    |
16    = note: the method `collect` exists but the following trait bounds were not satisfied:
17            `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`
18            `&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`
19
20 error: aborting due to 2 previous errors
21
22 Some errors occurred: E0271, E0599.
23 For more information about an error, try `rustc --explain E0271`.