From b315aba7e4a0c426299f5b48db03d53646a480d8 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Mon, 27 Jan 2014 21:13:47 +0100 Subject: [PATCH] test case for issue #10031. --- src/test/auxiliary/issue_10031_aux.rs | 11 +++++++++++ src/test/run-pass/issue-10031.rs | 17 +++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 src/test/auxiliary/issue_10031_aux.rs create mode 100644 src/test/run-pass/issue-10031.rs diff --git a/src/test/auxiliary/issue_10031_aux.rs b/src/test/auxiliary/issue_10031_aux.rs new file mode 100644 index 0000000000000..5724d876ef43d --- /dev/null +++ b/src/test/auxiliary/issue_10031_aux.rs @@ -0,0 +1,11 @@ +// 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +pub struct Wrap(A); diff --git a/src/test/run-pass/issue-10031.rs b/src/test/run-pass/issue-10031.rs new file mode 100644 index 0000000000000..c3f5bf75354b6 --- /dev/null +++ b/src/test/run-pass/issue-10031.rs @@ -0,0 +1,17 @@ +// 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// xfail-fast - check-fast doesn't understand aux-build +// aux-build:issue_10031_aux.rs +extern mod issue_10031_aux; + +pub fn main() { + let _ = issue_10031_aux::Wrap(()); +}