about summary refs log tree commit diff
path: root/tests/ui/modules/mod-same-item-names.rs
blob: 1e9a9caa5fc5d441ebab14604cd9b9c1a707e033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! 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() {}