Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Sep 24, 2020
1 parent 3f9015b commit 21edd10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/const-generics/issues/issue-76595.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
| ^^^^^^^^^
Expand Down

0 comments on commit 21edd10

Please sign in to comment.