]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/generic_const_exprs/closures.stderr
Rollup merge of #88661 - est31:typo_fix_in_test, r=joshtriplett
[rust.git] / src / test / ui / const-generics / generic_const_exprs / closures.stderr
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