rust/tests/ui/modules/mod-same-item-names.rs
2025-07-01 16:26:57 +05:00

16 lines
194 B
Rust

//! Test that items with identical names can coexist in different modules
//@ run-pass
#![allow(dead_code)]
mod foo {
pub fn baz() {}
}
mod bar {
pub fn baz() {}
}
pub fn main() {}