diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2014-01-27 21:13:47 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2014-01-27 21:15:18 +0100 |
| commit | b315aba7e4a0c426299f5b48db03d53646a480d8 (patch) | |
| tree | 2f0bc05062e7faac6fdbaa250efbe32a413ee3ca | |
| parent | 965387acc56605f538cace1500b31cc32f6c16d9 (diff) | |
| download | rust-b315aba7e4a0c426299f5b48db03d53646a480d8.tar.gz rust-b315aba7e4a0c426299f5b48db03d53646a480d8.zip | |
test case for issue #10031.
| -rw-r--r-- | src/test/auxiliary/issue_10031_aux.rs | 11 | ||||
| -rw-r--r-- | src/test/run-pass/issue-10031.rs | 17 |
2 files changed, 28 insertions, 0 deletions
diff --git a/src/test/auxiliary/issue_10031_aux.rs b/src/test/auxiliary/issue_10031_aux.rs new file mode 100644 index 00000000000..5724d876ef4 --- /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 <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. + +pub struct Wrap<A>(A); diff --git a/src/test/run-pass/issue-10031.rs b/src/test/run-pass/issue-10031.rs new file mode 100644 index 00000000000..c3f5bf75354 --- /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 <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. + +// 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(()); +} |
