1
1
error[E0277]: `[(); _]` is not a future
2
- --> $DIR/unresolved-ct-var.rs:8 :44
2
+ --> $DIR/unresolved-ct-var-drop-tracking .rs:7 :44
3
3
|
4
4
LL | let s = std::array::from_fn(|_| ()).await;
5
5
| ---------------------------^^^^^^
@@ -13,61 +13,61 @@ LL | let s = std::array::from_fn(|_| ()).await;
13
13
= note: required for `[(); _]` to implement `IntoFuture`
14
14
15
15
error[E0698]: type inside `async` block must be known in this context
16
- --> $DIR/unresolved-ct-var.rs:8 :17
16
+ --> $DIR/unresolved-ct-var-drop-tracking .rs:7 :17
17
17
|
18
18
LL | let s = std::array::from_fn(|_| ()).await;
19
19
| ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
20
20
|
21
21
note: the type is part of the `async` block because of this `await`
22
- --> $DIR/unresolved-ct-var.rs:8 :44
22
+ --> $DIR/unresolved-ct-var-drop-tracking .rs:7 :44
23
23
|
24
24
LL | let s = std::array::from_fn(|_| ()).await;
25
25
| ^^^^^^
26
26
27
27
error[E0698]: type inside `async` block must be known in this context
28
- --> $DIR/unresolved-ct-var.rs:8 :17
28
+ --> $DIR/unresolved-ct-var-drop-tracking .rs:7 :17
29
29
|
30
30
LL | let s = std::array::from_fn(|_| ()).await;
31
31
| ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
32
32
|
33
33
note: the type is part of the `async` block because of this `await`
34
- --> $DIR/unresolved-ct-var.rs:8 :44
34
+ --> $DIR/unresolved-ct-var-drop-tracking .rs:7 :44
35
35
|
36
36
LL | let s = std::array::from_fn(|_| ()).await;
37
37
| ^^^^^^
38
38
39
39
error[E0698]: type inside `async` block must be known in this context
40
- --> $DIR/unresolved-ct-var.rs:8 :17
40
+ --> $DIR/unresolved-ct-var-drop-tracking .rs:7 :17
41
41
|
42
42
LL | let s = std::array::from_fn(|_| ()).await;
43
43
| ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
44
44
|
45
45
note: the type is part of the `async` block because of this `await`
46
- --> $DIR/unresolved-ct-var.rs:8 :44
46
+ --> $DIR/unresolved-ct-var-drop-tracking .rs:7 :44
47
47
|
48
48
LL | let s = std::array::from_fn(|_| ()).await;
49
49
| ^^^^^^
50
50
51
51
error[E0698]: type inside `async` block must be known in this context
52
- --> $DIR/unresolved-ct-var.rs:8 :17
52
+ --> $DIR/unresolved-ct-var-drop-tracking .rs:7 :17
53
53
|
54
54
LL | let s = std::array::from_fn(|_| ()).await;
55
55
| ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
56
56
|
57
57
note: the type is part of the `async` block because of this `await`
58
- --> $DIR/unresolved-ct-var.rs:8 :44
58
+ --> $DIR/unresolved-ct-var-drop-tracking .rs:7 :44
59
59
|
60
60
LL | let s = std::array::from_fn(|_| ()).await;
61
61
| ^^^^^^
62
62
63
63
error[E0698]: type inside `async` block must be known in this context
64
- --> $DIR/unresolved-ct-var.rs:8 :17
64
+ --> $DIR/unresolved-ct-var-drop-tracking .rs:7 :17
65
65
|
66
66
LL | let s = std::array::from_fn(|_| ()).await;
67
67
| ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
68
68
|
69
69
note: the type is part of the `async` block because of this `await`
70
- --> $DIR/unresolved-ct-var.rs:8 :44
70
+ --> $DIR/unresolved-ct-var-drop-tracking .rs:7 :44
71
71
|
72
72
LL | let s = std::array::from_fn(|_| ()).await;
73
73
| ^^^^^^
0 commit comments