You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/issues/issue-31173.stderr
+12-20Lines changed: 12 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,8 @@
1
-
error[E0271]: expected `TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:8:21: 8:25]>` to be an iterator that yields `&_`, but it yields `u8`
2
-
--> $DIR/issue-31173.rs:6:25
3
-
|
4
-
LL | let temp: Vec<u8> = it
5
-
| _________________________^
6
-
LL | |
7
-
LL | | .take_while(|&x| {
8
-
LL | | found_e = true;
9
-
LL | | false
10
-
LL | | })
11
-
| |__________^ expected reference, found `u8`
12
-
LL | .cloned()
13
-
| ------ required by a bound introduced by this call
1
+
error[E0271]: expected `TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:7:21: 7:25]>` to be an iterator that yields `&_`, but it yields `u8`
2
+
--> $DIR/issue-31173.rs:11:10
3
+
|
4
+
LL | .cloned()
5
+
| ^^^^^^ expected reference, found `u8`
14
6
|
15
7
= note: expected reference `&_`
16
8
found type `u8`
@@ -20,11 +12,11 @@ note: required by a bound in `cloned`
20
12
LL | Self: Sized + Iterator<Item = &'a T>,
21
13
| ^^^^^^^^^^^^ required by this bound in `Iterator::cloned`
22
14
23
-
error[E0599]: the method `collect` exists for struct `Cloned<TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:8:21: 8:25]>>`, but its trait bounds were not satisfied
24
-
--> $DIR/issue-31173.rs:13:10
15
+
error[E0599]: the method `collect` exists for struct `Cloned<TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:7:21: 7:25]>>`, but its trait bounds were not satisfied
16
+
--> $DIR/issue-31173.rs:12:10
25
17
|
26
18
LL | .collect();
27
-
| ^^^^^^^ method cannot be called on `Cloned<TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:8:21: 8:25]>>` due to unsatisfied trait bounds
19
+
| ^^^^^^^ method cannot be called on `Cloned<TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:7:21: 7:25]>>` due to unsatisfied trait bounds
0 commit comments