diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-12-11 12:20:27 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-12-11 15:00:23 -0800 |
| commit | 6e38e334de13d878da91991c4c5e9014a06f93cb (patch) | |
| tree | 581c6d5de44ec9658365602ebcfc3eb8aaf6bb10 /src/test/run-pass/mod_dir_simple.rs | |
| parent | 364f9afb64e7797d0117b95866374bb4d5404141 (diff) | |
| download | rust-6e38e334de13d878da91991c4c5e9014a06f93cb.tar.gz rust-6e38e334de13d878da91991c4c5e9014a06f93cb.zip | |
Relate the module hierarchy to directory paths in the parser
Introduces a temporary 'path2' attribute that will replace 'path' after a snapshot
Diffstat (limited to 'src/test/run-pass/mod_dir_simple.rs')
| -rw-r--r-- | src/test/run-pass/mod_dir_simple.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/run-pass/mod_dir_simple.rs b/src/test/run-pass/mod_dir_simple.rs new file mode 100644 index 00000000000..7f07982a65b --- /dev/null +++ b/src/test/run-pass/mod_dir_simple.rs @@ -0,0 +1,20 @@ +// Copyright 2012 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-pretty +// xfail-fast + +mod mod_dir_simple { + pub mod test; +} + +fn main() { + assert mod_dir_simple::test::foo() == 10; +} |
