Handle conflicting import of items declared in the same module

Fixes #19498
Add compile-fail tests for #19498
auto merge of #19522 : mukilan/rust/import-conflicts-item, r=cmr

Fixes #19498