Skip to content

Commit b2f5f0f

Browse files
pietroalbiniMark-Simulacrum
authored andcommitted
bless ui tests
1 parent 681d554 commit b2f5f0f

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/test/ui/consts/array-literal-index-oob.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ fn main() {
22
&{[1, 2, 3][4]};
33
//~^ ERROR index out of bounds
44
//~| ERROR reaching this expression at runtime will panic or abort
5-
//~| ERROR this expression will panic at runtime
65
}

src/test/ui/consts/array-literal-index-oob.stderr

+1-7
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ LL | &{[1, 2, 3][4]};
66
|
77
= note: #[deny(const_err)] on by default
88

9-
error: this expression will panic at runtime
10-
--> $DIR/array-literal-index-oob.rs:2:5
11-
|
12-
LL | &{[1, 2, 3][4]};
13-
| ^^^^^^^^^^^^^^^ index out of bounds: the len is 3 but the index is 4
14-
159
error: reaching this expression at runtime will panic or abort
1610
--> $DIR/array-literal-index-oob.rs:2:7
1711
|
@@ -20,5 +14,5 @@ LL | &{[1, 2, 3][4]};
2014
| |
2115
| index out of bounds: the len is 3 but the index is 4
2216

23-
error: aborting due to 3 previous errors
17+
error: aborting due to 2 previous errors
2418

0 commit comments

Comments
 (0)