diff options
| author | Corey Farwell <coreyf@rwell.org> | 2015-06-29 17:10:53 -0700 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2015-06-29 17:10:53 -0700 |
| commit | d8680f6534ef1ffcb1affda7a1e1ea2bfc4749c2 (patch) | |
| tree | 2227a8756d4128702ddca908155ae635c859bed9 /src | |
| parent | fe283b4067769a9bc653855842fd8279e95e1f3e (diff) | |
| download | rust-d8680f6534ef1ffcb1affda7a1e1ea2bfc4749c2.tar.gz rust-d8680f6534ef1ffcb1affda7a1e1ea2bfc4749c2.zip | |
Add regression test for #17756
Closes #17756
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-pass/issue-17756.rs | 14 |
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]; +} |
