rust/tests/ui/error-codes/E0080.rs
2023-01-11 09:32:08 +00:00

8 lines
163 B
Rust

enum Enum {
X = (1 << 500), //~ ERROR E0080
//~| attempt to shift left by `500_i32`, which would overflow
Y = (1 / 0) //~ ERROR E0080
}
fn main() {
}