summaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/mod_missing_middle.rs
blob: 79633407671134b42b33b3493b278ff1f8142dcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// { dg-additional-options "-w" }

mod missing_middle {
    mod sub;

    #[path = "explicit.not.rs"]
    mod explicit;
}

#[path = "missing_middle"]
mod with_outer_path_attr {
    #[path = "outer_path.rs"]
    mod inner;
}

mod with_inner_path_attr {
    #![path = "missing_middle"]

    #[path = "inner_path.rs"]
    mod inner;
}

#[path = "missing_middle"]
mod with_both_path_attr {
    #![path = "this_is_ignored"]

    #[path = "both_path.rs"]
    mod inner;
}