Skip to content

Commit 0a0c850

Browse files
committed
fix test failure due to earlier emitted error
1 parent 906bb8d commit 0a0c850

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: src/test/ui/issues/issue-69602-type-err-during-codegen-ice.rs

+1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ impl TraitB for B { //~ ERROR not all trait items implemented, missing: `MyA`
1919

2020
fn main() {
2121
let _ = [0; B::VALUE];
22+
//~^ ERROR array lengths can't depend on generic parameters
2223
}

Diff for: src/test/ui/issues/issue-69602-type-err-during-codegen-ice.stderr

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ LL | type MyA: TraitA;
1313
LL | impl TraitB for B {
1414
| ^^^^^^^^^^^^^^^^^ missing `MyA` in implementation
1515

16-
error: aborting due to 2 previous errors
16+
error: array lengths can't depend on generic parameters
17+
--> $DIR/issue-69602-type-err-during-codegen-ice.rs:21:17
18+
|
19+
LL | let _ = [0; B::VALUE];
20+
| ^^^^^^^^
21+
22+
error: aborting due to 3 previous errors
1723

1824
Some errors have detailed explanations: E0046, E0437.
1925
For more information about an error, try `rustc --explain E0046`.

0 commit comments

Comments
 (0)