Improve div by zero const eval errors
This commit is contained in:
parent
1f3cb926a2
commit
f66367dacc
7 changed files with 12 additions and 9 deletions
|
|
@ -15,7 +15,6 @@ enum Enum {
|
|||
//~| const_err
|
||||
//~| const_err
|
||||
//~| const_err
|
||||
//~| divide by zero
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ warning: constant evaluation error
|
|||
--> $DIR/E0080.rs:14:9
|
||||
|
|
||||
LL | Y = (1 / 0) //~ ERROR E0080
|
||||
| ^^^^^^^ attempt to divide with overflow
|
||||
| ^^^^^^^ attempt to divide by zero
|
||||
|
||||
error[E0080]: constant evaluation error
|
||||
--> $DIR/E0080.rs:14:9
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue