]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/const-len-underflow-separate-spans.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / test / compile-fail / const-len-underflow-separate-spans.rs
index 9c6b774b99039811fb6482e80d2e98c649f5f6aa..c01bb82676304f1581af586d85520b13a977861c 100644 (file)
@@ -15,7 +15,8 @@
 const ONE: usize = 1;
 const TWO: usize = 2;
 const LEN: usize = ONE - TWO;
-//~^ ERROR array length constant evaluation error: attempted to subtract with overflow [E0250]
+//~^ ERROR E0080
+//~| attempt to subtract with overflow
 
 fn main() {
     let a: [i8; LEN] = unimplemented!();