]> git.lizzy.rs Git - rust.git/blob - src/test/ui/eval-enum.rs
Merge commit 'dbee13661efa269cb4cd57bb4c6b99a19732b484' into sync_cg_clif-2020-12-27
[rust.git] / src / test / ui / eval-enum.rs
1 enum Test {
2     DivZero = 1/0,
3     //~^ attempt to divide `1_isize` by zero
4     //~| ERROR evaluation of constant value failed
5     RemZero = 1%0,
6     //~^ attempt to calculate the remainder of `1_isize` with a divisor of zero
7     //~| ERROR evaluation of constant value failed
8 }
9
10 fn main() {}