]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/const-eval-overflow-4b.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / test / compile-fail / const-eval-overflow-4b.rs
index 31e1a72967f4dcf4860574ce6f563503a3d2637d..9e7a5ecae105a2b123a51519f20a2944b26bfe6a 100644 (file)
@@ -20,9 +20,8 @@ use std::{u8, u16, u32, u64, usize};
 
 const A_I8_T
     : [u32; (i8::MAX as i8 + 1u8) as usize]
-    //~^ ERROR mismatched types:
-    //~| expected `i8`,
-    //~| found `u8` [E0250]
+    //~^ ERROR constant evaluation error [E0080]
+    //~| expected i8, found u8
     = [0; (i8::MAX as usize) + 1];
 
 
@@ -33,7 +32,8 @@ const A_CHAR_USIZE
 
 const A_BAD_CHAR_USIZE
     : [u32; 5i8 as char as usize]
-    //~^ ERROR only `u8` can be cast as `char`, not `i8`
+    //~^ ERROR constant evaluation error
+    //~| only `u8` can be cast as `char`, not `i8`
     = [0; 5];
 
 fn main() {}