Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update tests
  • Loading branch information
lcnr committed Sep 24, 2020
commit 21edd10dc5ae8cde041f84a38fd0c4a44a36965d
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