about summary refs log tree commit diff
path: root/tests/ui/unsized-locals/simple-unsized-locals.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unsized-locals/simple-unsized-locals.rs')
-rw-r--r--tests/ui/unsized-locals/simple-unsized-locals.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/ui/unsized-locals/simple-unsized-locals.rs b/tests/ui/unsized-locals/simple-unsized-locals.rs
index 374031b80bd..e6c8bdc7a88 100644
--- a/tests/ui/unsized-locals/simple-unsized-locals.rs
+++ b/tests/ui/unsized-locals/simple-unsized-locals.rs
@@ -1,9 +1,4 @@
-//@ run-pass
-
-#![allow(incomplete_features)]
-#![feature(unsized_locals)]
-
 fn main() {
     let foo: Box<[u8]> = Box::new(*b"foo");
-    let _foo: [u8] = *foo;
+    let _foo: [u8] = *foo; //~ERROR the size for values of type `[u8]` cannot be known at compilation time [E0277]
 }