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
error[E0277]: the trait bound `for<'a> F: Output<'a>` is not satisfied
27
-
--> $DIR/filter-relevant-fn-bounds.rs:11:20
27
+
--> $DIR/filter-relevant-fn-bounds.rs:14:20
28
28
|
29
29
LL | F: for<'a> FnOnce(<F as Output<'a>>::Type),
30
30
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'a> Output<'a>` is not implemented for `F`
@@ -34,28 +34,30 @@ help: consider further restricting type parameter `F` with trait `Output`
34
34
LL | F: for<'a> FnOnce(<F as Output<'a>>::Type) + for<'a> Output<'a>,
35
35
| ++++++++++++++++++++
36
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
37
+
error[E0277]: expected a `FnOnce(<{closure@$DIR/filter-relevant-fn-bounds.rs:23:34: 23:41} as Output<'a>>::Type)` closure, found `{closure@$DIR/filter-relevant-fn-bounds.rs:23:34: 23:41}`
38
+
--> $DIR/filter-relevant-fn-bounds.rs:23:34
39
39
|
40
40
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}`
41
+
| -------------------- ^^^^^^^^^^ expected an `FnOnce(<{closure@$DIR/filter-relevant-fn-bounds.rs:23:34: 23:41} as Output<'a>>::Type)` closure, found `{closure@$DIR/filter-relevant-fn-bounds.rs:23:34: 23:41}`
42
42
| |
43
43
| required by a bound introduced by this call
44
44
|
45
-
= help: the trait `for<'a> Output<'a>` is not implemented for closure `{closure@$DIR/filter-relevant-fn-bounds.rs:20:34: 20:41}`
45
+
= help: the trait `for<'a> Output<'a>` is not implemented for closure `{closure@$DIR/filter-relevant-fn-bounds.rs:23:34: 23:41}`
46
46
help: this trait has no implementations, consider adding one
47
-
--> $DIR/filter-relevant-fn-bounds.rs:1:1
47
+
--> $DIR/filter-relevant-fn-bounds.rs:4:1
48
48
|
49
49
LL | trait Output<'a> {
50
50
| ^^^^^^^^^^^^^^^^
51
51
note: required by a bound in `Wrapper::do_something_wrapper`
52
-
--> $DIR/filter-relevant-fn-bounds.rs:11:12
52
+
--> $DIR/filter-relevant-fn-bounds.rs:14:12
53
53
|
54
54
LL | fn do_something_wrapper<O, F>(self, _: F)
55
55
| -------------------- required by a bound in this associated function
56
56
...
57
57
LL | F: for<'a> FnOnce(<F as Output<'a>>::Type),
58
58
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Wrapper::do_something_wrapper`
59
+
= note: the full name for the type has been written to '$TEST_BUILD_DIR/filter-relevant-fn-bounds.long-type-$LONG_TYPE_HASH.txt'
60
+
= note: consider using `--verbose` to print the full type name to the console
0 commit comments