mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
7 lines
181 B
Rust
7 lines
181 B
Rust
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
|
|
}
|
|
|
|
fn main() {}
|