rust/src/test/compile-fail/import-glob-multiple.rs
2011-12-22 16:14:00 -08:00

21 lines
326 B
Rust

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