fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[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 == &_` 2 --> $DIR/issue-31173.rs:10:10 3 | 4LL | .cloned() 5 | ^^^^^^ expected `u8`, found reference 6 | 7 = note: expected type `u8` 8 found reference `&_` 9 10error[E0599]: no method named `collect` found for struct `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 11 --> $DIR/issue-31173.rs:14:10 12 | 13LL | .collect(); 14 | ^^^^^^^ 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:_]>>` 15 | 16 ::: $SRC_DIR/libcore/iter/adapters/mod.rs:LL:COL 17 | 18LL | pub struct Cloned<I> { 19 | -------------------- doesn't satisfy `_: std::iter::Iterator` 20... 21LL | pub struct TakeWhile<I, P> { 22 | -------------------------- doesn't satisfy `<_ as std::iter::Iterator>::Item = &_` 23 | 24 = note: the method `collect` exists but the following trait bounds were not satisfied: 25 `<std::iter::TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:6:39: 9:6 found_e:_]> as std::iter::Iterator>::Item = &_` 26 which is required by `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` 27 `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` 28 which is required by `&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` 29 30error: aborting due to 2 previous errors 31 32Some errors have detailed explanations: E0271, E0599. 33For more information about an error, try `rustc --explain E0271`.