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

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

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

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