]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/eval-enum.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / eval-enum.rs
index ed1327f31185e8d565dd95307800193381e584a5..7ca274b81e574a5c6cf6962b926ddfb3ceff5b05 100644 (file)
@@ -10,7 +10,8 @@
 
 enum test {
     div_zero = 1/0, //~ERROR constant evaluation error: attempted to divide by zero
-    rem_zero = 1%0  //~ERROR constant evaluation error: attempted remainder with a divisor of zero
+    rem_zero = 1%0,
+//~^ ERROR constant evaluation error: attempted to calculate the remainder with a divisor of zero
 }
 
 fn main() {}