11error[E0277]: `[(); _]` is not a future
2- --> $DIR/unresolved-ct-var.rs:8 :44
2+ --> $DIR/unresolved-ct-var-drop-tracking .rs:7 :44
33 |
44LL | let s = std::array::from_fn(|_| ()).await;
55 | ---------------------------^^^^^^
@@ -13,61 +13,61 @@ LL | let s = std::array::from_fn(|_| ()).await;
1313 = note: required for `[(); _]` to implement `IntoFuture`
1414
1515error[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
1717 |
1818LL | let s = std::array::from_fn(|_| ()).await;
1919 | ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
2020 |
2121note: 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
2323 |
2424LL | let s = std::array::from_fn(|_| ()).await;
2525 | ^^^^^^
2626
2727error[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
2929 |
3030LL | let s = std::array::from_fn(|_| ()).await;
3131 | ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
3232 |
3333note: 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
3535 |
3636LL | let s = std::array::from_fn(|_| ()).await;
3737 | ^^^^^^
3838
3939error[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
4141 |
4242LL | let s = std::array::from_fn(|_| ()).await;
4343 | ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
4444 |
4545note: 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
4747 |
4848LL | let s = std::array::from_fn(|_| ()).await;
4949 | ^^^^^^
5050
5151error[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
5353 |
5454LL | let s = std::array::from_fn(|_| ()).await;
5555 | ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
5656 |
5757note: 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
5959 |
6060LL | let s = std::array::from_fn(|_| ()).await;
6161 | ^^^^^^
6262
6363error[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
6565 |
6666LL | let s = std::array::from_fn(|_| ()).await;
6767 | ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
6868 |
6969note: 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
7171 |
7272LL | let s = std::array::from_fn(|_| ()).await;
7373 | ^^^^^^
0 commit comments