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

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

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

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