summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-27008.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-27008.rs')
-rw-r--r--src/test/ui/issues/issue-27008.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-27008.rs b/src/test/ui/issues/issue-27008.rs
new file mode 100644
index 000000000..e04de33f6
--- /dev/null
+++ b/src/test/ui/issues/issue-27008.rs
@@ -0,0 +1,7 @@
+struct S;
+
+fn main() {
+ let b = [0; S];
+ //~^ ERROR mismatched types
+ //~| expected `usize`, found struct `S`
+}