Files
rust/tests/ui/error-codes/E0080.rs

7 lines
181 B
Rust
Raw Normal View History

2016-05-20 15:18:30 +02:00
enum Enum {
X = (1 << 500), //~ ERROR attempt to shift left by `500_i32`, which would overflow
Y = (1 / 0), //~ ERROR attempt to divide `1_isize` by zero
2016-05-20 15:18:30 +02:00
}
fn main() {}