summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0080.rs
blob: b31cf2ec447e7108796b61f24bb90ae9c11d4703 (plain)
1
2
3
4
5
6
7
8
enum Enum {
    X = (1 << 500), //~ ERROR E0080
    //~| attempt to shift left by 500_i32 which would overflow
    Y = (1 / 0) //~ ERROR E0080
}

fn main() {
}