2020-09-21 15:01:18 -05:00
|
|
|
error: overly complex generic constant
|
|
|
|
--> $DIR/closures.rs:3:35
|
|
|
|
|
|
|
|
|
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
|
2020-09-21 16:25:52 -05:00
|
|
|
| ^^^^-------^^
|
|
|
|
| |
|
2021-12-05 04:47:07 -06:00
|
|
|
| borrowing is not supported in generic constants
|
2020-09-21 15:01:18 -05:00
|
|
|
|
|
|
|
|
= help: consider moving this anonymous constant into a `const` function
|
2021-09-27 23:10:33 -05:00
|
|
|
= note: this operation may be supported in the future
|
2020-09-21 15:01:18 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|