]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-7364.rs
Imported Upstream version 1.2.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-7364.rs
index 6a36b2f84bfc901e9992bba0905422cf4be94f0d..7d0a9007829926e1ea4bb198ffcfd4ef5d0ffa1e 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 #![feature(box_syntax)]
+#![feature(const_fn)]
 
 use std::cell::RefCell;
 
@@ -17,6 +18,5 @@ static boxed: Box<RefCell<isize>> = box RefCell::new(0);
 //~^ ERROR allocations are not allowed in statics
 //~| ERROR the trait `core::marker::Sync` is not implemented for the type
 //~| ERROR the trait `core::marker::Sync` is not implemented for the type
-//~| ERROR function calls in statics are limited to struct and enum constructors
 
 fn main() { }