rust/src/test/ui/error-codes/E0080.rs

9 lines
160 B
Rust
Raw Normal View History

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