mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 18:44:56 +00:00
9 lines
163 B
Rust
9 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() {
|
|
}
|