]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/const-generics/const_evaluatable_checked/let-bindings.stderr
assign the correct `DefId` in `nominal_obligations`
[rust.git] / src / test / ui / const-generics / const_evaluatable_checked / let-bindings.stderr
index b76e300663d762e5f715bf90ce5203b63b06f138..dd27b81ee03423f60148001998f0b577acecd0ff 100644 (file)
@@ -2,7 +2,7 @@ error: constant expression depends on a generic parameter
   --> $DIR/let-bindings.rs:6:68
    |
 LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
-   |                                                                    ^^^^^^^^^^^^^^^^^^^^ required by this bound in `test::{{constant}}#0`
+   |                                                                    ^^^^^^^^^^^^^^^^^^^^ required by this bound in `test`
    |
    = help: consider moving this anonymous constant into a `const` function