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

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

9 lines
163 B
Rust
Raw Normal View History

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