2015-04-30 21:46:15 -05:00
|
|
|
// This tests that conflicting imports shows both `use` lines
|
|
|
|
// when reporting the error.
|
2015-04-25 13:09:41 -05:00
|
|
|
|
|
|
|
mod sub1 {
|
2016-02-22 16:33:38 -06:00
|
|
|
pub fn foo() {} // implementation 1
|
2015-04-25 13:09:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod sub2 {
|
2016-02-22 16:33:38 -06:00
|
|
|
pub fn foo() {} // implementation 2
|
2015-04-25 13:09:41 -05:00
|
|
|
}
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
use sub1::foo;
|
2017-05-17 22:29:58 -05:00
|
|
|
use sub2::foo; //~ ERROR the name `foo` is defined multiple times
|
2015-04-25 13:09:41 -05:00
|
|
|
|
|
|
|
fn main() {}
|