summaryrefslogtreecommitdiffstats
path: root/tests/ui/modules/mod_file_with_path_attr.rs
blob: 48e253eadae50cf369eb173abd069e0c2682cc94 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
// ignore-pretty issue #37195

// Testing that a plain .rs file can load modules from other source files

#[path = "mod_file_aux.rs"]
mod m;

pub fn main() {
    assert_eq!(m::foo(), 10);
}