We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ff50fe commit 1777f43Copy full SHA for 1777f43
src/test/ui/const-generics/generic_const_exprs/closures.stderr
@@ -4,7 +4,7 @@ error: overly complex generic constant
4
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
5
| ^^^^-------^^
6
| |
7
- | dereferencing is not supported in generic constants
+ | borrowing is not supported in generic constants
8
|
9
= help: consider moving this anonymous constant into a `const` function
10
= note: this operation may be supported in the future
0 commit comments