1 error: overly complex generic constant
2 --> $DIR/unused_expr.rs:4:34
4 LL | fn add<const N: usize>() -> [u8; { N + 1; 5 }] {
5 | ^^^^^^^^^^^^ blocks are not supported in generic constant
7 = help: consider moving this anonymous constant into a `const` function
8 = note: this operation may be supported in the future
10 error: overly complex generic constant
11 --> $DIR/unused_expr.rs:9:34
13 LL | fn div<const N: usize>() -> [u8; { N / 1; 5 }] {
14 | ^^^^^^^^^^^^ blocks are not supported in generic constant
16 = help: consider moving this anonymous constant into a `const` function
17 = note: this operation may be supported in the future
19 error: overly complex generic constant
20 --> $DIR/unused_expr.rs:16:38
22 LL | fn fn_call<const N: usize>() -> [u8; { foo(N); 5 }] {
23 | ^^^^^^^^^^^^^ blocks are not supported in generic constant
25 = help: consider moving this anonymous constant into a `const` function
26 = note: this operation may be supported in the future
28 error: aborting due to 3 previous errors