summary refs log tree commit diff
path: root/src/test/ui/const-generics/generic_const_exprs/closures.stderr
blob: 0dfd804be41b48a0c44c0cae1a396c1d0c9b249f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: overly complex generic constant
  --> $DIR/closures.rs:3:35
   |
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
   |                                   ^^^^-------^^
   |                                       |
   |                                       dereferencing is not supported in generic constants
   |
   = help: consider moving this anonymous constant into a `const` function
   = note: this operation may be supported in the future

error: aborting due to previous error