1 #[allow(unused_imports)] 2 3 mod foo { 4 use baz::bar; 5 mod bar {} 6 //~^ ERROR the name `bar` is defined multiple times 7 } 8 mod baz { pub mod bar {} } 9 main()10 fn main() {} 11