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

fn main() {}