We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dee05ab commit 459e37bCopy full SHA for 459e37b
src/test/ui/consts/const-eval/promoted_errors.stderr
@@ -16,6 +16,12 @@ warning: attempt to divide by zero
16
LL | println!("{}", 1/(1-1));
17
| ^^^^^^^
18
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
+
25
warning: attempt to divide by zero
26
--> $DIR/promoted_errors.rs:11:14
27
|
@@ -34,6 +40,12 @@ warning: attempt to divide by zero
34
40
LL | println!("{}", 1/(false as u32));
35
41
| ^^^^^^^^^^^^^^^^
36
42
43
44
+ --> $DIR/promoted_errors.rs:14:20
45
46
+LL | println!("{}", 1/(false as u32));
47
+ | ^^^^^^^^^^^^^^^^ attempt to divide by zero
48
37
49
38
50
--> $DIR/promoted_errors.rs:16:14
39
51
0 commit comments