@@ -5,7 +5,7 @@ LL | / async fn wrapper<F>(f: F)
5
5
LL | |
6
6
LL | |
7
7
LL | |
8
- LL | | where
8
+ ... |
9
9
LL | | F:,
10
10
LL | | for<'a> <i32 as FnOnce<(&'a mut i32,)>>::Output: Future<Output = ()> + 'a,
11
11
| |__________________________________________________________________________^ expected an `FnOnce(&'a mut i32)` closure, found `i32`
@@ -27,15 +27,30 @@ LL | / async fn wrapper<F>(f: F)
27
27
LL | |
28
28
LL | |
29
29
LL | |
30
- LL | | where
30
+ ... |
31
31
LL | | F:,
32
32
LL | | for<'a> <i32 as FnOnce<(&'a mut i32,)>>::Output: Future<Output = ()> + 'a,
33
33
| |__________________________________________________________________________^ expected an `FnOnce(&'a mut i32)` closure, found `i32`
34
34
|
35
35
= help: the trait `for<'a> FnOnce<(&'a mut i32,)>` is not implemented for `i32`
36
36
37
37
error[E0277]: expected a `FnOnce(&'a mut i32)` closure, found `i32`
38
- --> $DIR/issue-76168-hr-outlives-3.rs:13:1
38
+ --> $DIR/issue-76168-hr-outlives-3.rs:6:1
39
+ |
40
+ LL | / async fn wrapper<F>(f: F)
41
+ LL | |
42
+ LL | |
43
+ LL | |
44
+ ... |
45
+ LL | | F:,
46
+ LL | | for<'a> <i32 as FnOnce<(&'a mut i32,)>>::Output: Future<Output = ()> + 'a,
47
+ | |__________________________________________________________________________^ expected an `FnOnce(&'a mut i32)` closure, found `i32`
48
+ |
49
+ = help: the trait `for<'a> FnOnce<(&'a mut i32,)>` is not implemented for `i32`
50
+ = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
51
+
52
+ error[E0277]: expected a `FnOnce(&'a mut i32)` closure, found `i32`
53
+ --> $DIR/issue-76168-hr-outlives-3.rs:14:1
39
54
|
40
55
LL | / {
41
56
LL | |
@@ -46,6 +61,6 @@ LL | | }
46
61
|
47
62
= help: the trait `for<'a> FnOnce<(&'a mut i32,)>` is not implemented for `i32`
48
63
49
- error: aborting due to 4 previous errors
64
+ error: aborting due to 5 previous errors
50
65
51
66
For more information about this error, try `rustc --explain E0277`.
0 commit comments