]>
Commit | Line | Data |
---|---|---|
1b1a35ee XL |
1 | error: overly complex generic constant |
2 | --> $DIR/closures.rs:3:35 | |
3 | | | |
4 | LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {} | |
5 | | ^^^^-------^^ | |
6 | | | | |
7 | | unsupported rvalue | |
8 | | | |
9 | = help: consider moving this anonymous constant into a `const` function | |
10 | ||
11 | error: aborting due to previous error | |
12 |