1 error[E0277]: `[(); _]` is not a future
2 --> $DIR/unresolved-ct-var.rs:6:44
4 LL | let s = std::array::from_fn(|_| ()).await;
5 | ---------------------------^^^^^^
7 | | `[(); _]` is not a future
8 | | help: remove the `.await`
9 | this call returns `[(); _]`
11 = help: the trait `Future` is not implemented for `[(); _]`
12 = note: [(); _] must be a future or must implement `IntoFuture` to be awaited
13 = note: required for `[(); _]` to implement `IntoFuture`
15 error[E0698]: type inside `async` block must be known in this context
16 --> $DIR/unresolved-ct-var.rs:6:17
18 LL | let s = std::array::from_fn(|_| ()).await;
19 | ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
21 note: the type is part of the `async` block because of this `await`
22 --> $DIR/unresolved-ct-var.rs:6:44
24 LL | let s = std::array::from_fn(|_| ()).await;
27 error[E0698]: type inside `async` block must be known in this context
28 --> $DIR/unresolved-ct-var.rs:6:17
30 LL | let s = std::array::from_fn(|_| ()).await;
31 | ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
33 note: the type is part of the `async` block because of this `await`
34 --> $DIR/unresolved-ct-var.rs:6:44
36 LL | let s = std::array::from_fn(|_| ()).await;
39 error[E0698]: type inside `async` block must be known in this context
40 --> $DIR/unresolved-ct-var.rs:6:17
42 LL | let s = std::array::from_fn(|_| ()).await;
43 | ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
45 note: the type is part of the `async` block because of this `await`
46 --> $DIR/unresolved-ct-var.rs:6:44
48 LL | let s = std::array::from_fn(|_| ()).await;
51 error[E0698]: type inside `async` block must be known in this context
52 --> $DIR/unresolved-ct-var.rs:6:17
54 LL | let s = std::array::from_fn(|_| ()).await;
55 | ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
57 note: the type is part of the `async` block because of this `await`
58 --> $DIR/unresolved-ct-var.rs:6:44
60 LL | let s = std::array::from_fn(|_| ()).await;
63 error[E0698]: type inside `async` block must be known in this context
64 --> $DIR/unresolved-ct-var.rs:6:17
66 LL | let s = std::array::from_fn(|_| ()).await;
67 | ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
69 note: the type is part of the `async` block because of this `await`
70 --> $DIR/unresolved-ct-var.rs:6:44
72 LL | let s = std::array::from_fn(|_| ()).await;
75 error: aborting due to 6 previous errors
77 Some errors have detailed explanations: E0277, E0698.
78 For more information about an error, try `rustc --explain E0277`.