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: tests/ui/higher-ranked/trait-bounds/hrtb-doesnt-borrow-self-1.stderr
+8-8
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,23 @@
1
-
error[E0599]: the method `filterx` exists for struct `Map<Repeat, {closure@issue-30786-1.rs:115:27}>`, but its trait bounds were not satisfied
2
-
--> $DIR/issue-30786-1.rs:116:22
1
+
error[E0599]: the method `filterx` exists for struct `Map<Repeat, {closure@hrtb-doesnt-borrow-self-1.rs:115:27}>`, but its trait bounds were not satisfied
2
+
--> $DIR/hrtb-doesnt-borrow-self-1.rs:116:22
3
3
|
4
4
LL | pub struct Map<S, F> {
5
5
| -------------------- method `filterx` not found for this struct because it doesn't satisfy `_: StreamExt`
6
6
...
7
7
LL | let filter = map.filterx(|x: &_| true);
8
-
| ^^^^^^^ method cannot be called on `Map<Repeat, {[email protected]:115:27}>` due to unsatisfied trait bounds
8
+
| ^^^^^^^ method cannot be called due to unsatisfied trait bounds
9
9
|
10
10
note: the following trait bounds were not satisfied:
Copy file name to clipboardExpand all lines: tests/ui/higher-ranked/trait-bounds/hrtb-doesnt-borrow-self-2.stderr
+7-7
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
error[E0599]: the method `countx` exists for struct `Filter<Map<Repeat, fn(&u64) -> &u64 {identity::<u64>}>, {closure@issue-30786-2.rs:111:30}>`, but its trait bounds were not satisfied
2
-
--> $DIR/issue-30786-2.rs:112:24
1
+
error[E0599]: the method `countx` exists for struct `Filter<Map<Repeat, fn(&u64) -> &u64 {identity::<u64>}>, {closure@hrtb-doesnt-borrow-self-2.rs:111:30}>`, but its trait bounds were not satisfied
2
+
--> $DIR/hrtb-doesnt-borrow-self-2.rs:112:24
3
3
|
4
4
LL | pub struct Filter<S, F> {
5
5
| ----------------------- method `countx` not found for this struct because it doesn't satisfy `_: StreamExt`
@@ -8,16 +8,16 @@ LL | let count = filter.countx();
8
8
| ^^^^^^ method cannot be called due to unsatisfied trait bounds
9
9
|
10
10
note: the following trait bounds were not satisfied:
0 commit comments