]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/drop-tracking-unresolved-typeck-results.stderr
Rollup merge of #107114 - Erk-:add-absolute-note-to-path-join, r=m-ou-se
[rust.git] / tests / ui / async-await / drop-tracking-unresolved-typeck-results.stderr
1 error: implementation of `FnOnce` is not general enough
2   --> $DIR/drop-tracking-unresolved-typeck-results.rs:99:5
3    |
4 LL | /     send(async {
5 LL | |
6 LL | |
7 LL | |
8 LL | |
9 LL | |         Next(&Buffered(Map(Empty(PhantomData), ready::<&()>), FuturesOrdered(PhantomData), 0)).await
10 LL | |     });
11    | |______^ implementation of `FnOnce` is not general enough
12    |
13    = note: `fn(&'0 ()) -> std::future::Ready<&'0 ()> {std::future::ready::<&'0 ()>}` must implement `FnOnce<(&'1 (),)>`, for any two lifetimes `'0` and `'1`...
14    = note: ...but it actually implements `FnOnce<(&(),)>`
15
16 error: implementation of `FnOnce` is not general enough
17   --> $DIR/drop-tracking-unresolved-typeck-results.rs:99:5
18    |
19 LL | /     send(async {
20 LL | |
21 LL | |
22 LL | |
23 LL | |
24 LL | |         Next(&Buffered(Map(Empty(PhantomData), ready::<&()>), FuturesOrdered(PhantomData), 0)).await
25 LL | |     });
26    | |______^ implementation of `FnOnce` is not general enough
27    |
28    = note: `fn(&'0 ()) -> std::future::Ready<&'0 ()> {std::future::ready::<&'0 ()>}` must implement `FnOnce<(&'1 (),)>`, for any two lifetimes `'0` and `'1`...
29    = note: ...but it actually implements `FnOnce<(&(),)>`
30
31 error: implementation of `FnOnce` is not general enough
32   --> $DIR/drop-tracking-unresolved-typeck-results.rs:99:5
33    |
34 LL | /     send(async {
35 LL | |
36 LL | |
37 LL | |
38 LL | |
39 LL | |         Next(&Buffered(Map(Empty(PhantomData), ready::<&()>), FuturesOrdered(PhantomData), 0)).await
40 LL | |     });
41    | |______^ implementation of `FnOnce` is not general enough
42    |
43    = note: `fn(&'0 ()) -> std::future::Ready<&'0 ()> {std::future::ready::<&'0 ()>}` must implement `FnOnce<(&'1 (),)>`, for any two lifetimes `'0` and `'1`...
44    = note: ...but it actually implements `FnOnce<(&(),)>`
45
46 error: implementation of `FnOnce` is not general enough
47   --> $DIR/drop-tracking-unresolved-typeck-results.rs:99:5
48    |
49 LL | /     send(async {
50 LL | |
51 LL | |
52 LL | |
53 LL | |
54 LL | |         Next(&Buffered(Map(Empty(PhantomData), ready::<&()>), FuturesOrdered(PhantomData), 0)).await
55 LL | |     });
56    | |______^ implementation of `FnOnce` is not general enough
57    |
58    = note: `fn(&'0 ()) -> std::future::Ready<&'0 ()> {std::future::ready::<&'0 ()>}` must implement `FnOnce<(&'1 (),)>`, for any two lifetimes `'0` and `'1`...
59    = note: ...but it actually implements `FnOnce<(&(),)>`
60
61 error: aborting due to 4 previous errors
62