update tests

This commit is contained in:
Bastian Kauschke 2020-09-22 18:00:32 +02:00
parent 3f9015b22d
commit 21edd10dc5
2 changed files with 5 additions and 3 deletions

View File

@ -1,8 +1,10 @@
error: constant expression depends on a generic parameter
error: overly complex generic constant
--> $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`
| ^^^^^^-^^^^^^^^^^^^^
| |
| unsupported statement
|
= help: consider moving this anonymous constant into a `const` function

View File

@ -8,7 +8,7 @@ error: constant expression depends on a generic parameter
--> $DIR/issue-76595.rs:15:5
|
LL | fn test<T, const P: usize>() where Bool<{core::mem::size_of::<T>() > 4}>: True {
| ---- required by this bound in `test`
| ------------------------------- required by this bound in `test`
...
LL | test::<2>();
| ^^^^^^^^^