Skip to content

Commit 4d49ecc

Browse files
William UtterWilliam Utter
William Utter
authored and
William Utter
committed
change stderrs
1 parent 099e87e commit 4d49ecc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/ui/const-generics/generic_const_exprs/const_kind_expr/issue_114151.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ LL | | }
5252
LL | | }],
5353
| |_____^ required by this bound in `foo`
5454

55-
error: unconstrained generic constant `{const expr}`
55+
error: unconstrained generic constant `L + 1 + L`
5656
--> $DIR/issue_114151.rs:17:5
5757
|
5858
LL | foo::<_, L>([(); L + 1 + L]);

tests/ui/const-generics/transmute-fail.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ error[E0512]: cannot transmute between types of different sizes, or dependently-
44
LL | std::mem::transmute(v)
55
| ^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: source type: `[[u32; H+1]; W]` (generic size {const expr})
8-
= note: target type: `[[u32; W+1]; H]` (generic size {const expr})
7+
= note: source type: `[[u32; H+1]; W]` (generic size H + 1 * 4 * W)
8+
= note: target type: `[[u32; W+1]; H]` (generic size W + 1 * 4 * H)
99

1010
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
1111
--> $DIR/transmute-fail.rs:16:5
@@ -22,8 +22,8 @@ error[E0512]: cannot transmute between types of different sizes, or dependently-
2222
LL | std::mem::transmute(v)
2323
| ^^^^^^^^^^^^^^^^^^^
2424
|
25-
= note: source type: `[[u32; H]; W]` (generic size {const expr})
26-
= note: target type: `[u32; W * H * H]` (generic size {const expr})
25+
= note: source type: `[[u32; H]; W]` (generic size 4 * H * W)
26+
= note: target type: `[u32; W * H * H]` (generic size 4 * H * H * W)
2727

2828
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
2929
--> $DIR/transmute-fail.rs:30:5

0 commit comments

Comments
 (0)