Skip to content

Commit 47b16f4

Browse files
committed
bless stderr
1 parent 4483c2b commit 47b16f4

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

src/test/ui/const-generics/generic_const_exprs/array-size-in-generic-struct-param.full.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ error: overly complex generic constant
1010
--> $DIR/array-size-in-generic-struct-param.rs:19:15
1111
|
1212
LL | arr: [u8; CFG.arr_size],
13-
| ^^^^^^^^^^^^ unsupported projection
13+
| ^^^^^^^^^^^^ unsupported operation in generic constant, this may be supported in the future
1414
|
1515
= help: consider moving this anonymous constant into a `const` function
1616

src/test/ui/const-generics/generic_const_exprs/closures.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: overly complex generic constant
44
LL | fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
55
| ^^^^-------^^
66
| |
7-
| unsupported rvalue
7+
| unsupported operation in generic constant, this may be supported in the future
88
|
99
= help: consider moving this anonymous constant into a `const` function
1010

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,15 @@ 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-
| ^^^^^^-^^^^^^^^^^^^^
6-
| |
7-
| unsupported statement
5+
| ^^^^^^^^^^^^^^^^^^^^ unsupported operation in generic constant, this may be supported in the future
86
|
97
= help: consider moving this anonymous constant into a `const` function
108

119
error: overly complex generic constant
1210
--> $DIR/let-bindings.rs:6:35
1311
|
1412
LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
15-
| ^^^^^^-^^^^^^^^^^^^^
16-
| |
17-
| unsupported statement
13+
| ^^^^^^^^^^^^^^^^^^^^ unsupported operation in generic constant, this may be supported in the future
1814
|
1915
= help: consider moving this anonymous constant into a `const` function
2016

src/test/ui/const-generics/issues/issue-67375.full.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ error: overly complex generic constant
22
--> $DIR/issue-67375.rs:7:17
33
|
44
LL | inner: [(); { [|_: &T| {}; 0].len() }],
5-
| ^^^----------^^^^^^^^^^^^
6-
| |
7-
| unsupported rvalue
5+
| ^^---------------^^^^^^^^
6+
| |
7+
| unsupported operation in generic constant
88
|
99
= help: consider moving this anonymous constant into a `const` function
1010

src/test/ui/const-generics/issues/issue-67945-2.full.stderr

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ LL | A: [(); {
55
| _____________^
66
LL | |
77
LL | | let x: Option<Box<Self>> = None;
8-
| | ---- unsupported rvalue
98
LL | |
109
LL | | 0
1110
LL | | }],
12-
| |_____^
11+
| |_____^ unsupported operation in generic constant, this may be supported in the future
1312
|
1413
= help: consider moving this anonymous constant into a `const` function
1514

0 commit comments

Comments
 (0)