rust/src/test/run-pass/import-glob-1.rs
Brian Anderson 518dc52f85 Reformat
This changes the indexing syntax from .() to [], the vector syntax from ~[] to
[] and the extension syntax from #fmt() to #fmt[]
2011-08-20 11:04:00 -07:00

41 lines
716 B
Rust

import a1::b1::word_traveler;
mod a1 {
//
mod b1 {
//
import a2::b1::*;
// <-\
export word_traveler; // |
}
// |
mod b2 {
// |
import a2::b2::*;
// <-\ -\ |
export word_traveler; // | | |
} // | | |
}
// | | |
// | | |
mod a2 {
// | | |
native "cdecl" mod b1 = "" {
// | | |
import a1::b2::*;
// | <-/ -/
export word_traveler; // |
}
// |
mod b2 {
// |
fn word_traveler() { // |
log "ahoy!"; // -/
} //
} //
}
//
fn main() { word_traveler(); }