diff options
| author | bors <bors@rust-lang.org> | 2016-06-18 17:07:15 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-18 17:07:15 -0700 |
| commit | 9a681247379190896b9f56a3fb11c94ee4b83dce (patch) | |
| tree | b5a7486684a37f064380b72e14f7d7e3cacd8d0c | |
| parent | 35784cbe0db678c252737ab870e490135a803f23 (diff) | |
| parent | 0e55c04940dc42acbe1cc4c9e75ef21e7a40ee58 (diff) | |
| download | rust-9a681247379190896b9f56a3fb11c94ee4b83dce.tar.gz rust-9a681247379190896b9f56a3fb11c94ee4b83dce.zip | |
Auto merge of #34350 - Stebalien:test-30276, r=eddyb
Add test case for #30276 Make sure that treating a DST tuple constructor as a function doesn't ICE. Closes #30276
| -rw-r--r-- | src/test/run-pass/issue-30276.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-30276.rs b/src/test/run-pass/issue-30276.rs new file mode 100644 index 00000000000..5dd0cd8ba53 --- /dev/null +++ b/src/test/run-pass/issue-30276.rs @@ -0,0 +1,14 @@ +// Copyright 2013 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. + +struct Test([i32]); +fn main() { + let _x: fn(_) -> Test = Test; +} |
