]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-17718-const-bad-values.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-17718-const-bad-values.rs
index af356588ed9e7b72f51afe010c6590fad005645f..17ec77d77eea2c1f0b0a04f6ee7334418201580d 100644 (file)
 
 const C1: &'static mut [usize] = &mut [];
 //~^ ERROR: references in constants may only refer to immutable values
-//~| ERROR: references in constants may only refer to immutable values
 
 static mut S: usize = 3;
 const C2: &'static mut usize = unsafe { &mut S };
 //~^ ERROR: constants cannot refer to statics
 //~| ERROR: references in constants may only refer to immutable values
 //~| ERROR: references in constants may only refer to immutable values
-//~| ERROR: references in constants may only refer to immutable values
 
 fn main() {}