From d8680f6534ef1ffcb1affda7a1e1ea2bfc4749c2 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Mon, 29 Jun 2015 17:10:53 -0700 Subject: [PATCH] Add regression test for #17756 Closes #17756 --- src/test/run-pass/issue-17756.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/test/run-pass/issue-17756.rs 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 or the MIT license +// , 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]; +}