Skip to content

Commit da636c7

Browse files
author
Nick Hamann
committed
Add long diagnostics for E0020
1 parent e40449e commit da636c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustc/diagnostics.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ reference when using guards or refactor the entire expression, perhaps by
112112
putting the condition inside the body of the arm.
113113
"##,
114114

115+
E0020: r##"
116+
This error indicates that an attempt was made to divide by zero (or take the
117+
remainder of a zero divisor) in a static or constant expression.
118+
"##,
119+
115120
E0162: r##"
116121
An if-let pattern attempts to match the pattern, and enters the body if the
117122
match was succesful. If the match is irrefutable (when it cannot fail to match),
@@ -243,7 +248,6 @@ register_diagnostics! {
243248
E0017,
244249
E0018,
245250
E0019,
246-
E0020,
247251
E0022,
248252
E0079, // enum variant: expected signed integer constant
249253
E0080, // enum variant: constant evaluation error

0 commit comments

Comments
 (0)