1 error: overly complex generic constant
2 --> $DIR/let-bindings.rs:6:68
4 LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
7 | unsupported statement
9 = help: consider moving this anonymous constant into a `const` function
11 error: overly complex generic constant
12 --> $DIR/let-bindings.rs:6:35
14 LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
15 | ^^^^^^-^^^^^^^^^^^^^
17 | unsupported statement
19 = help: consider moving this anonymous constant into a `const` function
21 error: aborting due to 2 previous errors