summary refs log tree commit diff
path: root/src/test/ui/const-generics/const_evaluatable_checked/closures.stderr
blob: 9f0b7252e8326ff2893c633d2ea735670ed8de3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error: overly complex generic constant
  --> $DIR/closures.rs:3:35
   |
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
   |                                   ^^^^-------^^
   |                                       |
   |                                       unsupported rvalue
   |
   = help: consider moving this anonymous constant into a `const` function

error: aborting due to previous error