rust/src/test/run-pass/companionmod.rs
Brian Anderson e0f44730e8 rustc: Support 'companion mod's for crates and directory mods
Under this scheme when parsing foo.rc the parser will also look for
foo.rs to fill in the crate-level module, and when evaluating a
directory module directive it will look for a .rs file with the
same name as the directory.
2011-10-29 01:40:20 -07:00

7 lines
163 B
Rust

// This isn't really xfailed; it's used by the companionmod.rc test
// xfail-test
fn main() {
assert a::b::g() == "ralph";
assert a::c::g() == "nelson";
}