]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/generic_const_exprs/closures.stderr
Move generic error message to separate branches
[rust.git] / src / test / ui / const-generics / generic_const_exprs / closures.stderr
index 9f0b7252e8326ff2893c633d2ea735670ed8de3c..0dfd804be41b48a0c44c0cae1a396c1d0c9b249f 100644 (file)
@@ -4,9 +4,10 @@ error: overly complex generic constant
 LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
    |                                   ^^^^-------^^
    |                                       |
-   |                                       unsupported rvalue
+   |                                       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