summary refs log tree commit diff
path: root/tests/ui/const-generics/vec-macro-in-static-array.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/vec-macro-in-static-array.stderr')
-rw-r--r--tests/ui/const-generics/vec-macro-in-static-array.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/const-generics/vec-macro-in-static-array.stderr b/tests/ui/const-generics/vec-macro-in-static-array.stderr
new file mode 100644
index 00000000000..de21f2274f3
--- /dev/null
+++ b/tests/ui/const-generics/vec-macro-in-static-array.stderr
@@ -0,0 +1,13 @@
+error[E0308]: mismatched types
+  --> $DIR/vec-macro-in-static-array.rs:5:26
+   |
+LL | static VEC: [u32; 256] = vec![];
+   |                          ^^^^^^ expected `[u32; 256]`, found `Vec<_>`
+   |
+   = note: expected array `[u32; 256]`
+             found struct `Vec<_>`
+   = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to 1 previous error
+
+For more information about this error, try `rustc --explain E0308`.