summary refs log tree commit diff
path: root/tests/ui/consts/eval-enum.rs
blob: fa9ad6736e29792ef9512ea354506c9846e57dce (plain)
1
2
3
4
5
6
7
8
9
10
enum Test {
    DivZero = 1/0,
    //~^ NOTE attempt to divide `1_isize` by zero
    //~| ERROR evaluation of constant value failed
    RemZero = 1%0,
    //~^ NOTE attempt to calculate the remainder of `1_isize` with a divisor of zero
    //~| ERROR evaluation of constant value failed
}

fn main() {}