fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: overly complex generic constant 2 --> $DIR/unused_expr.rs:4:34 3 | 4LL | fn add<const N: usize>() -> [u8; { N + 1; 5 }] { 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/unused_expr.rs:9:34 12 | 13LL | fn div<const N: usize>() -> [u8; { N / 1; 5 }] { 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: overly complex generic constant 20 --> $DIR/unused_expr.rs:16:38 21 | 22LL | fn fn_call<const N: usize>() -> [u8; { foo(N); 5 }] { 23 | ^^^^^^^^^^^^^ blocks are not supported in generic constants 24 | 25 = help: consider moving this anonymous constant into a `const` function 26 = note: this operation may be supported in the future 27 28error: aborting due to 3 previous errors 29