Skip to content

Commit 459e37b

Browse files
committed
Bless test output
1 parent dee05ab commit 459e37b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/ui/consts/const-eval/promoted_errors.stderr

+12
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ warning: attempt to divide by zero
1616
LL | println!("{}", 1/(1-1));
1717
| ^^^^^^^
1818

19+
warning: this expression will panic at runtime
20+
--> $DIR/promoted_errors.rs:9:20
21+
|
22+
LL | println!("{}", 1/(1-1));
23+
| ^^^^^^^ attempt to divide by zero
24+
1925
warning: attempt to divide by zero
2026
--> $DIR/promoted_errors.rs:11:14
2127
|
@@ -34,6 +40,12 @@ warning: attempt to divide by zero
3440
LL | println!("{}", 1/(false as u32));
3541
| ^^^^^^^^^^^^^^^^
3642

43+
warning: this expression will panic at runtime
44+
--> $DIR/promoted_errors.rs:14:20
45+
|
46+
LL | println!("{}", 1/(false as u32));
47+
| ^^^^^^^^^^^^^^^^ attempt to divide by zero
48+
3749
warning: attempt to divide by zero
3850
--> $DIR/promoted_errors.rs:16:14
3951
|

0 commit comments

Comments
 (0)