Files
rust/tests/ui/modules/mod-same-item-names.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
194 B
Rust
Raw Normal View History

2025-06-13 02:30:47 +05:00
//! Test that items with identical names can coexist in different modules
//@ run-pass
#![allow(dead_code)]
mod foo {
2025-06-13 02:30:47 +05:00
pub fn baz() {}
}
mod bar {
2025-06-13 02:30:47 +05:00
pub fn baz() {}
}
2025-06-13 02:30:47 +05:00
pub fn main() {}