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

mod a {
    import b::x;
    export x;
}

mod b {
    import a::x;
    export x;

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