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

15 lines
145 B
Rust

// error-pattern:duplicate definition of f
import m1::{f};
import m2::{f};
mod m1 {
fn f() { }
}
mod m2 {
fn f() { }
}
fn main() { }