about summary refs log tree commit diff
path: root/src/test/compile-fail/placement-expr-unstable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/placement-expr-unstable.rs')
-rw-r--r--src/test/compile-fail/placement-expr-unstable.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/test/compile-fail/placement-expr-unstable.rs b/src/test/compile-fail/placement-expr-unstable.rs
index b3aa4e9187d..cc73cbe15fe 100644
--- a/src/test/compile-fail/placement-expr-unstable.rs
+++ b/src/test/compile-fail/placement-expr-unstable.rs
@@ -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
     };
 }