summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unsized-locals/issue-30276-feature-flagged.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/unsized-locals/issue-30276-feature-flagged.rs')
-rw-r--r--src/test/ui/unsized-locals/issue-30276-feature-flagged.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/unsized-locals/issue-30276-feature-flagged.rs b/src/test/ui/unsized-locals/issue-30276-feature-flagged.rs
new file mode 100644
index 000000000..635d34f82
--- /dev/null
+++ b/src/test/ui/unsized-locals/issue-30276-feature-flagged.rs
@@ -0,0 +1,8 @@
+#![feature(unsized_locals)]
+//~^ WARN the feature `unsized_locals` is incomplete
+
+struct Test([i32]);
+
+fn main() {
+ let _x: fn(_) -> Test = Test;
+} //~^the size for values of type `[i32]` cannot be known at compilation time