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
+9-9
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
error[E0271]: expected `TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:6:39: 6:43]>` to be an iterator of `&_`, but it actually returns items of `u8`
2
-
--> $DIR/issue-31173.rs:10:10
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
3
|
4
4
LL | .cloned()
5
5
| ^^^^^^ expected reference, found `u8`
@@ -12,11 +12,11 @@ note: required by a bound in `cloned`
12
12
LL | Self: Sized + Iterator<Item = &'a T>,
13
13
| ^^^^^^^^^^^^ required by this bound in `cloned`
14
14
15
-
error[E0599]: the method `collect` exists for struct `Cloned<TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:6:39: 6:43]>>`, but its trait bounds were not satisfied
16
-
--> $DIR/issue-31173.rs:12: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:13:10
17
17
|
18
18
LL | .collect();
19
-
| ^^^^^^^ method cannot be called on `Cloned<TakeWhile<&mut std::vec::IntoIter<u8>, [closure@$DIR/issue-31173.rs:6:39: 6:43]>>` 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
Copy file name to clipboardExpand all lines: src/test/ui/issues/issue-33941.rs
+3-3
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
use std::collections::HashMap;
4
4
5
5
fnmain(){
6
-
for _ inHashMap::new().iter().cloned(){}//~ ERROR expected `std::collections::hash_map::Iter<'_, _, _>` to be an iterator of `&_`, but it actually returns items of `(&_, &_)`
7
-
//~^ ERROR expected `std::collections::hash_map::Iter<'_, _, _>` to be an iterator of `&_`, but it actually returns items of `(&_, &_)`
8
-
//~| ERROR expected `std::collections::hash_map::Iter<'_, _, _>` to be an iterator of `&_`, but it actually returns items of `(&_, &_)`
6
+
for _ inHashMap::new().iter().cloned(){}//~ ERROR expected `std::collections::hash_map::Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
7
+
//~^ ERROR expected `std::collections::hash_map::Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
8
+
//~| ERROR expected `std::collections::hash_map::Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
//~^ ERROR expected `fn() -> impl Future<Output = ()> {test}` to be a fn item that returns `Pin<Box<(dyn Future<Output = ()> + 'static)>>`, but it actually returns `impl Future<Output = ()>`
10
+
//~^ ERROR expected `fn() -> impl Future<Output = ()> {test}` to be a fn item that returns `Pin<Box<(dyn Future<Output = ()> + 'static)>>`, but it returns `impl Future<Output = ()>`
Copy file name to clipboardExpand all lines: src/test/ui/type-alias-impl-trait/issue-98604.stderr
+3-3
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
error[E0271]: expected `fn() -> impl Future<Output = ()> {test}` to be a fn item that returns `Pin<Box<(dyn Future<Output = ()> + 'static)>>`, but it actually returns `impl Future<Output = ()>`
2
-
--> $DIR/issue-98604.rs:11:5
1
+
error[E0271]: expected `fn() -> impl Future<Output = ()> {test}` to be a fn item that returns `Pin<Box<(dyn Future<Output = ()> + 'static)>>`, but it returns `impl Future<Output = ()>`
2
+
--> $DIR/issue-98604.rs:9:5
3
3
|
4
4
LL | Box::new(test) as AsyncFnPtr;
5
5
| ^^^^^^^^^^^^^^ expected struct `Pin`, found opaque type
6
6
|
7
7
note: while checking the return type of the `async fn`
8
-
--> $DIR/issue-98604.rs:7:17
8
+
--> $DIR/issue-98604.rs:5:17
9
9
|
10
10
LL | async fn test() {}
11
11
| ^ checked the `Output` of this `async fn`, found opaque type
0 commit comments