diff options
| author | Brian Koropoff <bkoropoff@gmail.com> | 2014-10-29 21:48:15 -0700 |
|---|---|---|
| committer | Brian Koropoff <bkoropoff@gmail.com> | 2014-10-29 21:48:15 -0700 |
| commit | 88c8a547286e77b1a62609adcee5d65a4f91b09a (patch) | |
| tree | 3527877295e0d8a2a05cd4facce41a53ea9d0690 | |
| parent | 8384dd93571181047f0461379e7ec49e5305b178 (diff) | |
| download | rust-88c8a547286e77b1a62609adcee5d65a4f91b09a.tar.gz rust-88c8a547286e77b1a62609adcee5d65a4f91b09a.zip | |
Add regression test for #18425
| -rw-r--r-- | src/test/run-pass/issue-18425.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-18425.rs b/src/test/run-pass/issue-18425.rs new file mode 100644 index 00000000000..6bb244bf88f --- /dev/null +++ b/src/test/run-pass/issue-18425.rs @@ -0,0 +1,16 @@ +// Copyright 2014 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. + +// Check that trans doesn't ICE when translating an array repeat +// expression with a count of 1 and a non-Copy element type. + +fn main() { + let _ = [box 1u, ..1]; +} |
