about summary refs log tree commit diff
path: root/tests/ui/const-generics/vec-macro-in-static-array.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/vec-macro-in-static-array.rs')
-rw-r--r--tests/ui/const-generics/vec-macro-in-static-array.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/const-generics/vec-macro-in-static-array.rs b/tests/ui/const-generics/vec-macro-in-static-array.rs
new file mode 100644
index 00000000000..7a81836e255
--- /dev/null
+++ b/tests/ui/const-generics/vec-macro-in-static-array.rs
@@ -0,0 +1,8 @@
+//! Regression test for https://github.com/rust-lang/rust/issues/13446
+
+// Used to cause ICE
+
+static VEC: [u32; 256] = vec![];
+//~^ ERROR mismatched types
+
+fn main() {}