rust/src/test/compile-fail/import-glob-multiple.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

21 lines
302 B
Rust

// error-pattern:common2
import mod1::*;
import mod2::*;
mod mod1 {
fn f1() { log "f1"; }
fn common1() { log "common" }
fn common2() { log "common" }
}
mod mod2 {
fn f2() { log "f1"; }
fn common1() { log "common" }
fn common2() { log "common" }
}
fn main() { common2(); }