about summary refs log tree commit diff
path: root/tests/ui/const-generics/vec-macro-in-static-array.rs
diff options
context:
space:
mode:
authorKivooeo <Kivooeo123@gmail.com>2025-07-24 17:15:36 +0500
committerKivooeo <Kivooeo123@gmail.com>2025-07-24 17:15:36 +0500
commitd636a6590ce1429ff011e04bb0b4d393dc382226 (patch)
tree61a0e867f983df1630c3a986097d75fdc7e37812 /tests/ui/const-generics/vec-macro-in-static-array.rs
parent3c30dbbe31bfbf6029f4534170165ba573ff0fd1 (diff)
downloadrust-d636a6590ce1429ff011e04bb0b4d393dc382226.tar.gz
rust-d636a6590ce1429ff011e04bb0b4d393dc382226.zip
moved 35 tests to organized locations
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.rs6
1 files changed, 6 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..9f1fc42774f
--- /dev/null
+++ b/tests/ui/const-generics/vec-macro-in-static-array.rs
@@ -0,0 +1,6 @@
+// Used to cause ICE
+
+static VEC: [u32; 256] = vec![];
+//~^ ERROR mismatched types
+
+fn main() {}