Skip to content

Commit 21edd10

Browse files
committed
update tests
1 parent 3f9015b commit 21edd10

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/test/ui/const-generics/const_evaluatable_checked/let-bindings.stderr

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
error: constant expression depends on a generic parameter
1+
error: overly complex generic constant
22
--> $DIR/let-bindings.rs:6:68
33
|
44
LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
5-
| ^^^^^^^^^^^^^^^^^^^^ required by this bound in `test`
5+
| ^^^^^^-^^^^^^^^^^^^^
6+
| |
7+
| unsupported statement
68
|
79
= help: consider moving this anonymous constant into a `const` function
810

src/test/ui/const-generics/issues/issue-76595.stderr

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

0 commit comments

Comments
 (0)