summary refs log tree commit diff
path: root/src/test/compile-fail/import-loop-2.rs
blob: 6a4d31c2ef3cec0012e2c4bf5c4a4d5c545bdfa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// error-pattern:import

mod a {
    #[legacy_exports];
    import b::x;
    export x;
}

mod b {
    #[legacy_exports];
    import a::x;
    export x;

    fn main() { let y = x; }
}