]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/placement-expr-unstable.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / placement-expr-unstable.rs
index b3aa4e9187d34dc7fdb4cdb8ec18fac2c8514e7c..cc73cbe15fe5f9f16dfe8aa62b98fc895ac3b2e8 100644 (file)
@@ -18,9 +18,6 @@ fn main() {
     use std::boxed::HEAP; //~ ERROR use of unstable library feature
 
     let _ = HEAP <- { //~ ERROR use of unstable library feature
-        ::core::raw::Slice { //~ ERROR use of unstable library feature
-            data: &42, //~ ERROR use of unstable library feature
-            len: 1 //~ ERROR use of unstable library feature
-        }
+        HEAP //~ ERROR use of unstable library feature
     };
 }