]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-28324.rs
Minor refactoring.
[rust.git] / src / test / compile-fail / issue-28324.rs
index 13ce41f4dcc543f8a210d9ee948a72271c4b77fd..0f9fe3fe246f679173bc906f478161e718c22b8e 100644 (file)
@@ -8,11 +8,14 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(safe_extern_statics)]
+
 extern {
     static error_message_count: u32;
 }
 
 pub static BAZ: u32 = *&error_message_count;
-//~^ ERROR cannot refer to other statics by value
+//~^ ERROR constant evaluation error
+//~| tried to read from foreign (extern) static
 
 fn main() {}