mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
11 lines
293 B
Rust
11 lines
293 B
Rust
enum Test {
|
|
DivZero = 1/0,
|
|
//~^ attempt to divide `1_isize` by zero
|
|
//~| ERROR evaluation of constant value failed
|
|
RemZero = 1%0,
|
|
//~^ attempt to calculate the remainder of `1_isize` with a divisor of zero
|
|
//~| ERROR evaluation of constant value failed
|
|
}
|
|
|
|
fn main() {}
|