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