rust/tests/ui/consts/eval-enum.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
481 B
Plaintext
Raw Normal View History

error[E0080]: evaluation of constant value failed
2018-12-25 09:56:47 -06:00
--> $DIR/eval-enum.rs:2:15
2018-08-08 07:28:26 -05:00
|
LL | DivZero = 1/0,
| ^^^ attempt to divide `1_isize` by zero
2018-08-08 07:28:26 -05:00
error[E0080]: evaluation of constant value failed
2018-12-25 09:56:47 -06:00
--> $DIR/eval-enum.rs:5:15
2018-08-08 07:28:26 -05:00
|
LL | RemZero = 1%0,
| ^^^ attempt to calculate the remainder of `1_isize` with a divisor of zero
2018-08-08 07:28:26 -05:00
error: aborting due to 2 previous errors
2018-08-08 07:28:26 -05:00
For more information about this error, try `rustc --explain E0080`.