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/methods/filter-relevant-fn-bounds.stderr
+5-27Lines changed: 5 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -12,37 +12,15 @@ help: consider further restricting type parameter `F` with trait `Output`
12
12
LL | F: for<'a> FnOnce(<F as Output<'a>>::Type) + for<'a> Output<'a>,
13
13
| ++++++++++++++++++++
14
14
15
-
error[E0277]: the trait bound `for<'a> F: Output<'a>` is not satisfied
16
-
--> $DIR/filter-relevant-fn-bounds.rs:11:12
17
-
|
18
-
LL | F: for<'a> FnOnce(<F as Output<'a>>::Type),
19
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'a> Output<'a>` is not implemented for `F`
20
-
|
21
-
help: consider further restricting type parameter `F` with trait `Output`
22
-
|
23
-
LL | F: for<'a> FnOnce(<F as Output<'a>>::Type) + for<'a> Output<'a>,
24
-
| ++++++++++++++++++++
25
-
26
-
error[E0277]: the trait bound `for<'a> F: Output<'a>` is not satisfied
27
-
--> $DIR/filter-relevant-fn-bounds.rs:11:20
28
-
|
29
-
LL | F: for<'a> FnOnce(<F as Output<'a>>::Type),
30
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'a> Output<'a>` is not implemented for `F`
31
-
|
32
-
help: consider further restricting type parameter `F` with trait `Output`
33
-
|
34
-
LL | F: for<'a> FnOnce(<F as Output<'a>>::Type) + for<'a> Output<'a>,
35
-
| ++++++++++++++++++++
36
-
37
-
error[E0277]: expected a `FnOnce(<{closure@$DIR/filter-relevant-fn-bounds.rs:20:34: 20:41} as Output<'a>>::Type)` closure, found `{closure@$DIR/filter-relevant-fn-bounds.rs:20:34: 20:41}`
38
-
--> $DIR/filter-relevant-fn-bounds.rs:20:34
15
+
error[E0277]: expected a `FnOnce(<{closure@$DIR/filter-relevant-fn-bounds.rs:18:34: 18:41} as Output<'a>>::Type)` closure, found `{closure@$DIR/filter-relevant-fn-bounds.rs:18:34: 18:41}`
16
+
--> $DIR/filter-relevant-fn-bounds.rs:18:34
39
17
|
40
18
LL | wrapper.do_something_wrapper(|value| ());
41
-
| -------------------- ^^^^^^^^^^ expected an `FnOnce(<{closure@$DIR/filter-relevant-fn-bounds.rs:20:34: 20:41} as Output<'a>>::Type)` closure, found `{closure@$DIR/filter-relevant-fn-bounds.rs:20:34: 20:41}`
19
+
| -------------------- ^^^^^^^^^^ expected an `FnOnce(<{closure@$DIR/filter-relevant-fn-bounds.rs:18:34: 18:41} as Output<'a>>::Type)` closure, found `{closure@$DIR/filter-relevant-fn-bounds.rs:18:34: 18:41}`
42
20
| |
43
21
| required by a bound introduced by this call
44
22
|
45
-
= help: the trait `for<'a> Output<'a>` is not implemented for closure `{closure@$DIR/filter-relevant-fn-bounds.rs:20:34: 20:41}`
23
+
= help: the trait `for<'a> Output<'a>` is not implemented for closure `{closure@$DIR/filter-relevant-fn-bounds.rs:18:34: 18:41}`
46
24
help: this trait has no implementations, consider adding one
0 commit comments