File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ E0016: include_str!("./error_codes/E0016.md"),
2525E0017 : include_str!( "./error_codes/E0017.md" ) ,
2626E0018 : include_str!( "./error_codes/E0018.md" ) ,
2727E0019 : include_str!( "./error_codes/E0019.md" ) ,
28+ E0020 : include_str!( "./error_codes/E0020.md" ) ,
2829E0022 : include_str!( "./error_codes/E0022.md" ) ,
2930E0023 : include_str!( "./error_codes/E0023.md" ) ,
3031E0025 : include_str!( "./error_codes/E0025.md" ) ,
Original file line number Diff line number Diff line change 1+ #### Note: this error code is no longer emitted by the compiler.
2+
3+ This error indicates that an attempt was made to divide by zero (or take the
4+ remainder of a zero divisor) in a static or constant expression. Erroneous
5+ code example:
6+
7+ ``` compile_fail
8+ #[deny(const_err)]
9+
10+ const X: i32 = 42 / 0;
11+ // error: attempt to divide by zero in a constant expression
12+ ```
You can’t perform that action at this time.
0 commit comments