fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: overly complex generic constant 2 --> $DIR/let-bindings.rs:6:68 3 | 4LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default { 5 | ^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constants 6 | 7 = help: consider moving this anonymous constant into a `const` function 8 = note: this operation may be supported in the future 9 10error: overly complex generic constant 11 --> $DIR/let-bindings.rs:6:35 12 | 13LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default { 14 | ^^^^^^^^^^^^^^^^^^^^ blocks are not supported in generic constants 15 | 16 = help: consider moving this anonymous constant into a `const` function 17 = note: this operation may be supported in the future 18 19error: aborting due to 2 previous errors 20