diff options
| author | Tamir Duberstein <tamird@gmail.com> | 2015-03-15 13:30:37 -0700 |
|---|---|---|
| committer | Tamir Duberstein <tamird@gmail.com> | 2015-03-16 07:35:24 -0700 |
| commit | ef343645c6bc0cebc6c29d0086ff842764319fe5 (patch) | |
| tree | 74c995593a7e437e4e3bbc827a7d7fd050792418 | |
| parent | c986199425415a498c8250e2c74f1f33a8fc7fe6 (diff) | |
| download | rust-ef343645c6bc0cebc6c29d0086ff842764319fe5.tar.gz rust-ef343645c6bc0cebc6c29d0086ff842764319fe5.zip | |
Regression test for #20714
Closes #20714.
| -rw-r--r-- | src/test/compile-fail/issue-20714.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-20714.rs b/src/test/compile-fail/issue-20714.rs new file mode 100644 index 00000000000..cb322f00723 --- /dev/null +++ b/src/test/compile-fail/issue-20714.rs @@ -0,0 +1,15 @@ +// 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. + +struct G; + +fn main() { + let g = G(); //~ ERROR: expected function, found `G` +} |
