about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-06-30 03:18:45 +0000
committerbors <bors@rust-lang.org>2015-06-30 03:18:45 +0000
commite6596d0052e79e6393bbee3538bb122930d89887 (patch)
tree5188bc47b3d49601989433fdc9f3c3801c316a75
parent27975c49a643d0b2f8cbcd7854931c4c9a8c5dbf (diff)
parentd8680f6534ef1ffcb1affda7a1e1ea2bfc4749c2 (diff)
downloadrust-e6596d0052e79e6393bbee3538bb122930d89887.tar.gz
rust-e6596d0052e79e6393bbee3538bb122930d89887.zip
Auto merge of #26668 - frewsxcv:regression-test-17756, r=alexcrichton
Closes #17756
-rw-r--r--src/test/run-pass/issue-17756.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-17756.rs b/src/test/run-pass/issue-17756.rs
new file mode 100644
index 00000000000..1b108463c74
--- /dev/null
+++ b/src/test/run-pass/issue-17756.rs
@@ -0,0 +1,14 @@
+// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+const count : usize = 2 as usize;
+fn main() {
+    let larger : [usize; count*2];
+}