Files
rust/tests/ui/consts/eval-enum.rs

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

9 lines
207 B
Rust
Raw Normal View History

2018-01-16 09:31:48 +01:00
enum Test {
DivZero = 1 / 0,
//~^ ERROR attempt to divide `1_isize` by zero
RemZero = 1 % 0,
//~^ ERROR attempt to calculate the remainder of `1_isize` with a divisor of zero
}
fn main() {}