pub fn foo() {} // implementation 2
}
-use sub1::foo; //~ NOTE previous import of the value `foo` here
+use sub1::foo;
use sub2::foo; //~ ERROR the name `foo` is defined multiple times
- //~| NOTE `foo` reimported here
- //~| NOTE `foo` must be defined only once in the value namespace of this module
fn main() {}